summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/using-decl-templates.cpp
diff options
context:
space:
mode:
authorRichard Trieu <rtrieu@google.com>2016-04-05 21:13:54 +0000
committerRichard Trieu <rtrieu@google.com>2016-04-05 21:13:54 +0000
commit265c344ef816a8573562fa27022b8008e0f58198 (patch)
tree9e48f3b1c08e09cc8d5f984d6d2add72e089010e /clang/test/SemaCXX/using-decl-templates.cpp
parent1de3c7e79010c43300a2637c3020a1489a3dd0de (diff)
downloadbcm5719-llvm-265c344ef816a8573562fa27022b8008e0f58198.tar.gz
bcm5719-llvm-265c344ef816a8573562fa27022b8008e0f58198.zip
Fix a crash on invalid with template handling
This is a fix for https://llvm.org/bugs/show_bug.cgi?id=25561 which was a crash on invalid. Change the handling of invalid decls to have a catch-all case to prevent unexpecting decls from triggering an assertion. llvm-svn: 265467
Diffstat (limited to 'clang/test/SemaCXX/using-decl-templates.cpp')
-rw-r--r--clang/test/SemaCXX/using-decl-templates.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/SemaCXX/using-decl-templates.cpp b/clang/test/SemaCXX/using-decl-templates.cpp
index 8314688bcbc..d766bb3ac6b 100644
--- a/clang/test/SemaCXX/using-decl-templates.cpp
+++ b/clang/test/SemaCXX/using-decl-templates.cpp
@@ -90,5 +90,5 @@ namespace aliastemplateinst {
template<typename T> struct A { };
template<typename T> using APtr = A<T*>; // expected-note{{previous use is here}}
- template struct APtr<int>; // expected-error{{elaborated type refers to a non-tag type}}
+ template struct APtr<int>; // expected-error{{elaborated type refers to a type alias template}}
}
OpenPOWER on IntegriCloud