[Bug c++/43960] New: Template redeclaration with different number of parameters is tolerated

yuri at tsoft dot com gcc-bugzilla@gcc.gnu.org
Sun May 2 00:54:00 GMT 2010


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



More information about the Gcc-bugs mailing list