summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.brendan/crash8.C
blob: 487208328efca4f87f957199427ccabc3317ef25 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// { dg-do compile }
// GROUPS passed old-abort
template<int a, int b>
class Elvis // { dg-error "class Elvis" }
{
} ;

template<int a>
class Elvis<0> // { dg-error "wrong number of template arguments" }
{
  int geta() { return a ; }
} ;