summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/static12.C
blob: 73becab27fd41cd119cdb46d41e650c1874da991 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// PR c++/18470

template<typename> struct A
{
    static const int i=1;
};

template<typename T> struct B : A<T>
{
    using A<T>::i;
    char s[i];       // fails
    char t[A<T>::i]; // compiles
};