Debian Codegraph @

gcc/testsuite/g++.dg/parse/pr81247-c.C

raw
1 // PR c++/81247 rejected well-formed
2
3 namespace N {
4 template < typename T > class A
5 {
6 // injects a hidden class N::N at instantiation time
7 template < T > friend class N;
8 };
9 }
10
11 void f ()
12 {
13 N::A < int > a1;
14 }