/cp
[official-gcc.git] / gcc / testsuite / g++.dg / other / error16.C
blob38c0fd63fd122579a6772356aeb01201fad64ccb
1 // PR c++/17763
3 template <typename U> struct Outer {
4     struct Inner {};
5     Inner foo();
6 };
8 typedef int X;
9 typedef Outer<X> XOuter;
11 int main() {
12   Outer<int>  ab;
13   ab.foo() == 1; // { dg-error "operand types are 'Outer<int>::Inner' and 'int'" }