summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/tredecl4.C
blob: 0fa6aef5f2c7a6f415b9410ec5fb3bd2f2dfa8be (plain)
1
2
3
4
5
6
// { dg-do assemble  }
// It is illegal to use the name of a class template for anything else,
// including another class template.

template <class T> class A { };	// { dg-message "previous" } 
template <class U, class V> class A { }; // { dg-error "redeclared" }