summaryrefslogtreecommitdiffstats
path: root/gcc/testsuite/g++.dg/debug/template2.C
blob: 9f5bcd9b1013436fe9bc0772622f8fc12dd408a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// PR c++/57545

template<typename T, long unsigned int N>
struct array {
    T data[N];
};

template<typename T>
struct derived {
    typedef long unsigned int size_type;
    static const size_type n = 42;

    array<int, n> a;
};
OpenPOWER on IntegriCloud