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

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

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

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