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