================ @@ -121,6 +145,21 @@ derived d2(42, 9); #endif } +namespace cwg1945 { // cwg1945: no +template<typename T> struct A { + class B { + class C {}; + }; +}; +class X { + static int x; + // FIXME: this is ill-formed, because A<T>::B::C does not end with a simple-template-id + template <typename T> + friend class A<T>::B::C; + // expected-warning@-1 {{dependent nested name specifier 'A<T>::B::' for friend class declaration is not supported; turning off access control for 'X'}} +}; +} // namespace cwg1918 ---------------- shafik wrote:
```suggestion } // namespace cwg1945 ``` https://github.com/llvm/llvm-project/pull/94288 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits