summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/crash6.C
blob: 776e01ebb6dbf9451594f8e84f72bbfb757c64b3 (plain)
1
2
3
4
5
6
7
8
template <class> struct A { static const int n = 1; } ;
template <int> struct B;

template <class S>
struct restype_order {
    static const int s = A<S>::n;
    typedef typename B<(s > 0)>::t t;
};