summaryrefslogtreecommitdiffstats
path: root/test/SemaCXX/crash-PR7625.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaCXX/crash-PR7625.cpp')
-rw-r--r--test/SemaCXX/crash-PR7625.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/SemaCXX/crash-PR7625.cpp b/test/SemaCXX/crash-PR7625.cpp
new file mode 100644
index 0000000..3ddf5e5
--- /dev/null
+++ b/test/SemaCXX/crash-PR7625.cpp
@@ -0,0 +1,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'}}
+ };
+};
OpenPOWER on IntegriCloud