summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/param1.C
blob: a8c3791254fd1baa7199693c443f5b395676f211 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// PR c++/22233
// Origin: Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
// { dg-do compile }

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

template<int N, char> A<N>::A() {}  // { dg-error "invalid use of incomplete type" }

A<0> a;