1 2 3 4 5 6
// RUN: %clang_cc1 -fsyntax-only -verify %s template<typename T> struct a : T { struct x : T { int aa() { return p; } // expected-error{{use of undeclared identifier 'p'}} }; };