// PR c++/116064 // { dg-additional-options -fpermissive } // Verify we correctly mark a partial specialization as erroneous // instead its primary template. template struct A { }; template struct A { // { dg-error "instantiating erroneous template" } void f(typename A::type); // { dg-warning "does not name a type" } }; A a; // { dg-bogus "" } A b; // { dg-message "required from here" }