diff options
Diffstat (limited to 'test/CXX/temp/temp.spec/temp.expl.spec/p20.cpp')
-rw-r--r-- | test/CXX/temp/temp.spec/temp.expl.spec/p20.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/CXX/temp/temp.spec/temp.expl.spec/p20.cpp b/test/CXX/temp/temp.spec/temp.expl.spec/p20.cpp index f987c12..86cdcf8 100644 --- a/test/CXX/temp/temp.spec/temp.expl.spec/p20.cpp +++ b/test/CXX/temp/temp.spec/temp.expl.spec/p20.cpp @@ -6,7 +6,7 @@ template<typename T> struct A { }; struct X { - template<> friend void f<int>(int); // expected-error{{in class scope}} + template<> friend void f<int>(int); // expected-error{{in a friend}} template<> friend class A<int>; // expected-error{{cannot be a friend}} friend void f<float>(float); // okay |