summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/crash57.C
blob: cf1c3c2961de4db0b59e466c5ddab8c864be19df (plain)
1
2
3
4
5
6
7
8
9
10
//PR c++/27397

template<int(> struct A;        // { dg-error "token" }

template<typename> struct B
{
    template<int(> struct C;    // { dg-error "token" }
};

A<char> a;                      // { dg-error "type/value mismatch|constant|declaration" }