diff options
-rw-r--r-- | test/SemaTemplate/elaborated-type-specifier.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/SemaTemplate/elaborated-type-specifier.cpp b/test/SemaTemplate/elaborated-type-specifier.cpp index c38bf547a1..b34660acbe 100644 --- a/test/SemaTemplate/elaborated-type-specifier.cpp +++ b/test/SemaTemplate/elaborated-type-specifier.cpp @@ -31,5 +31,6 @@ struct DeclOrDef { namespace PR6649 { template <typename T> struct foo { class T::bar; // expected-error{{nested name specifier for a declaration cannot depend on a template parameter}} + class T::bar { int x; }; // expected-error{{nested name specifier for a declaration cannot depend on a template parameter}} }; } |