diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-01-29 04:13:32 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-01-29 04:13:32 +0000 |
commit | 8338a9d28c4a9d06b19b1c5df51e70182914e2df (patch) | |
tree | f3af168a02080d08395734a48d477cc9f8247de3 /test/Parser/cxx-decl.cpp | |
parent | 353299a29d3a1847b9bf657fd5478e40cffd5e5e (diff) |
PR15017: A '>' can appear after a type-specifier in a template-argument-list.
It turns out that there's no correctness bug here (because we can't have a type
definition in this location), but there was a diagnostic bug.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@173766 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Parser/cxx-decl.cpp')
-rw-r--r-- | test/Parser/cxx-decl.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/Parser/cxx-decl.cpp b/test/Parser/cxx-decl.cpp index 71fd7aae18..24ba127515 100644 --- a/test/Parser/cxx-decl.cpp +++ b/test/Parser/cxx-decl.cpp @@ -180,6 +180,10 @@ void test (DIE die, DIE *Die, DIE INT, DIE *FLOAT) { FLOAT->foo(); } +namespace PR15017 { + template<typename T = struct X { int i; }> struct S {}; // expected-error {{'PR15017::X' can not be defined in a type specifier}} +} + // PR8380 extern "" // expected-error {{unknown linkage language}} test6a { ;// expected-error {{C++ requires a type specifier for all declarations}} \ |