xref: /aosp_15_r20/external/clang/test/CXX/temp/temp.res/temp.local/p9.cpp (revision 67e74705e28f6214e480b399dd47ea732279e315)
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 
gX12   void g() {
13     b.g(); // expected-error{{no member named 'g' in 'A::B'}}
14   }
15 };
16