Debian Codegraph @

gcc/testsuite/g++.dg/template/pr83825.C

raw
1 // PR c++/83825
2 // { dg-do compile }
3
4 template <int A>
5 class A {}; // { dg-error "shadows template parameter" }
6
7 template <int I>
8 class B
9 {
10 void foo () { A <I> a; }
11 };
12
13 template void B <0>::foo ();