Debian Codegraph @

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

raw
1 // PR c++/40370
2 // { dg-do compile }
3
4 struct A
5 {
6 static int i;
7 };
8
9 template <int> struct B
10 {
11 int x[A::i]; // { dg-error "not an integral constant-expression" }
12 };