This testcase redeclares template H::F with different number of parameters. This should be illegal, but gcc-4.5.0 passes it.
--- testcase --- namespace H { template<class A,typename T,bool K> struct F; } ; class Z { template<typename T> friend struct H::F; }; -- Summary: Template redeclaration with different number of parameters is tolerated Product: gcc Version: 4.5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: yuri at tsoft dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43960