Debian Codegraph @

gcc/testsuite/g++.dg/other/error16.C

raw
1 // PR c++/17763
2
3 template <typename U> struct Outer {
4 struct Inner {};
5 Inner foo();
6 };
7
8 typedef int X;
9 typedef Outer<X> XOuter;
10
11 int main() {
12 Outer<int> ab;
13 ab.foo() == 1; // { dg-error "operand types are 'Outer<int>::Inner' and 'int'" }
14 }