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

template < typename > struct S
{
  template < > struct S < int > // { dg-error "explicit|specialization|template|parameter" }
  {
    S(int);
  };
};

S < int > s(0); // { dg-error "incomplete type" }