llvm-project/clang/test/SemaCXX/crash-PR7625.cpp

7 lines
183 B
C++

// 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'}}
};
};