summaryrefslogtreecommitdiffstats
path: root/test/SemaCXX/PR9459.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaCXX/PR9459.cpp')
-rw-r--r--test/SemaCXX/PR9459.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/SemaCXX/PR9459.cpp b/test/SemaCXX/PR9459.cpp
new file mode 100644
index 0000000..dfb242d
--- /dev/null
+++ b/test/SemaCXX/PR9459.cpp
@@ -0,0 +1,7 @@
+// RUN: %clang_cc1 -fsyntax-only -verify %s
+
+// Don't crash.
+
+template<typename>struct ae_same;
+template<typename>struct ts{}ap()
+{ts<a>::ap<ae_same<int>::&ae_same<>>::p(a); }; // expected-error {{use of undeclared identifier 'a'}}
OpenPOWER on IntegriCloud