summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/non-dependent13.C
blob: 9e69948ac20c65519c8e23961e9dbcdb0aed11a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
// PR c++/26266

template <int I>
struct S;

template <int I>
void f() {
  if (const int i = 3) {
    S<i>::j; // { dg-error "incomplete" }
  }
}