Debian Codegraph @

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

raw
1 // PR c++/18470
2
3 template<typename> struct A
4 {
5 static const int i=1;
6 };
7
8 template<typename T> struct B : A<T>
9 {
10 using A<T>::i;
11 char s[i]; // fails
12 char t[A<T>::i]; // compiles
13 };