aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-07-28 23:59:57 +0000
committerDouglas Gregor <dgregor@apple.com>2010-07-28 23:59:57 +0000
commit98c2e6248fa4152cd6a6aea9a8d894f7fe21f394 (patch)
tree699fa735b236d9dcac5b8dac89e1444166ef0812 /test
parentab5722e67794b3954c874a369086fc5f41ac46a5 (diff)
Don't set out-of-line template specialization/definition information
for AST nodes that aren't actually out-of-line (i.e., require a nested-name-specifier). Fixes <rdar://problem/8204126>. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@109704 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/SemaTemplate/crash-8204126.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/SemaTemplate/crash-8204126.cpp b/test/SemaTemplate/crash-8204126.cpp
new file mode 100644
index 0000000000..eb96560b8d
--- /dev/null
+++ b/test/SemaTemplate/crash-8204126.cpp
@@ -0,0 +1,6 @@
+// RUN: %clang_cc1 -fsyntax-only -verify %s
+struct A
+{
+ template<int> template<typename T> friend void foo(T) {} // expected-error{{extraneous template parameter list}}
+ void bar() { foo(0); } // expected-error{{use of undeclared identifier 'foo'}}
+};