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" }