1 | // RUN: %clang_cc1 -fsyntax-only -verify %s |
---|---|
2 | struct A { |
3 | struct B { void f(); }; |
4 | int a; |
5 | int Y; |
6 | }; |
7 | |
8 | template<class B, class a> struct X : A { |
9 | B b; // A's B |
10 | a c; // expected-error{{unknown type name 'a'}} |
11 | |
12 | void g() { |
13 | b.g(); // expected-error{{no member named 'g' in 'A::B'}} |
14 | } |
15 | }; |
16 |