diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-07-28 23:59:57 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-07-28 23:59:57 +0000 |
commit | 43397fc4dc2f63183d5a486448120d51f2109fcf (patch) | |
tree | 517d44a263b3d3ffc6242a7e97266e526fcec90f /clang/test | |
parent | a44f49f189f37afd7a853e980790e418650e4e4a (diff) | |
download | bcm5719-llvm-43397fc4dc2f63183d5a486448120d51f2109fcf.tar.gz bcm5719-llvm-43397fc4dc2f63183d5a486448120d51f2109fcf.zip |
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>.
llvm-svn: 109704
Diffstat (limited to 'clang/test')
-rw-r--r-- | clang/test/SemaTemplate/crash-8204126.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/SemaTemplate/crash-8204126.cpp b/clang/test/SemaTemplate/crash-8204126.cpp new file mode 100644 index 00000000000..eb96560b8da --- /dev/null +++ b/clang/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'}} +}; |