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

template<int, int = 0> struct A;  // { dg-error "previous declaration" }

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

A<0> a;                           // { dg-error "incomplete type" }