OSDN Git Service

2011-02-20 Paolo Carlini <paolo.carlini@oracle.com>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / template / param1.C
1 // PR c++/22233
2 // Origin: Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
3 // { dg-do compile }
4
5 template<int> struct A // { dg-error "declaration" }
6 {
7   A();
8 };
9
10 template<int N, char> A<N>::A() {}  // { dg-error "invalid use of incomplete type" }
11
12 A<0> a;