diff options
Diffstat (limited to 'clang/test/CXX/temp/temp.spec/temp.expl.spec/examples.cpp')
-rw-r--r-- | clang/test/CXX/temp/temp.spec/temp.expl.spec/examples.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/test/CXX/temp/temp.spec/temp.expl.spec/examples.cpp b/clang/test/CXX/temp/temp.spec/temp.expl.spec/examples.cpp index aecbfb5649f..3844ec99458 100644 --- a/clang/test/CXX/temp/temp.spec/temp.expl.spec/examples.cpp +++ b/clang/test/CXX/temp/temp.spec/temp.expl.spec/examples.cpp @@ -163,7 +163,8 @@ namespace PR9877 { template<> struct X<1>::Y { static const int Z = 1; }; const int X<0>::Y::Z; - template<> const int X<1>::Y::Z; // expected-error{{extraneous 'template<>' in declaration of variable 'Z'}} + template<> const int X<1>::Y::Z; // expected-error{{extraneous 'template<>' in declaration of variable 'Z'}} \ + // expected-error{{forward declaration of variable template cannot have a nested name specifier}} } namespace PR9913 { |