Debian Codegraph @

gcc/testsuite/g++.dg/template/non-dependent13.C

raw
1 // PR c++/26266
2
3 template <int I>
4 struct S;
5
6 template <int I>
7 void f() {
8 if (const int i = 3) {
9 S<i>::j; // { dg-error "incomplete" }
10 }
11 }