diff --git a/clang/test/CXX/drs/dr18xx.cpp b/clang/test/CXX/drs/dr18xx.cpp --- a/clang/test/CXX/drs/dr18xx.cpp +++ b/clang/test/CXX/drs/dr18xx.cpp @@ -51,6 +51,22 @@ #endif } +namespace dr1821 { // dr1821: yes +struct A { + template struct B { + void f(); + }; + template void B::f(){}; + // expected-error@-1 {{non-friend class member 'f' cannot have a qualified name}} + + struct C { + void f(); + }; + void C::f() {} + // expected-error@-1 {{non-friend class member 'f' cannot have a qualified name}} +}; +} // namespace dr1821 + namespace dr1822 { // dr1822: yes #if __cplusplus >= 201103L int a; diff --git a/clang/www/cxx_dr_status.html b/clang/www/cxx_dr_status.html --- a/clang/www/cxx_dr_status.html +++ b/clang/www/cxx_dr_status.html @@ -10733,7 +10733,7 @@ 1821 CD6 Qualified redeclarations in a class member-specification - Unknown + Yes 1822