[Bug c++/30156] New: [4.1/4.2/4.3 regression] ICE on invalid template declaration

reichelt at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Mon Dec 11 21:08:00 GMT 2006


The following invalid testcase causes an ICE on the 4.1 branch, 4.2 branch
and mainline (4.1.0 and 4.1.1 are not affected, though):

====================================
struct A
{
    template<int> int foo(X);
};
====================================

The underlying problem is the same as in PR27961, but cannot be papered
over as easily in this case ;-)


-- 
           Summary: [4.1/4.2/4.3 regression] ICE on invalid template
                    declaration
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code, error-recovery, monitored
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: reichelt at gcc dot gnu dot org
 BugsThisDependsOn: 27961


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30156



More information about the Gcc-bugs mailing list