Debian Codegraph @

gcc/testsuite/g++.dg/other/error33.C

raw
1 // Contributed by Dodji Seketeli <[email protected]>
2 // Origin: PR c++/42218
3 // { dg-do compile }
4
5 template<int> struct A
6 {
7 template<int> struct B;
8 };
9
10 int i = A<0>::B<0>::X::Y; // { dg-error "'A<0>::B<0>::X' has not been declared" }
11