The following invalid code snippet triggers an ICE on mainline and 4.2 branch:

==================================
class A
{
  int i;
};

A::A() { A(); }
==================================

bug.cc:6: error: definition of implicitly-declared 'A::A()'
bug.cc:6: error: declaration of 'A::A()' throws different exceptions
bug.cc:2: error: from previous declaration 'A::A() throw ()'
bug.cc: In constructor 'A::A()':
bug.cc:6: internal compiler error: in finish_function, at cp/decl.c:11162
Please submit a full bug report, [etc.]


-- 
           Summary: [4.2/4.3 regression] ICE with invalid constructor
                    definition
           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


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

Reply via email to