summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/redecl2.C
blob: 4dd432e6fea2e19167c1250674181b1ad186d1aa (plain)
1
2
3
4
5
6
7
8
9
// { dg-do compile }

// Origin: heinlein@informatik.uni-ulm.de

// PR c++/14428: Redeclaration of class template with wrong
// non-type template parameter.

template <int i> struct X;	// { dg-error "template parameter" }
template <int* p> struct X;	// { dg-error "redeclared here" }