[Bug c++/19733] New: [3.4/4.0 regression] ICE on invalid destructor call

reichelt at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Mon Jan 31 23:17:00 GMT 2005


The following invalid code snippet causes an ICE since gcc 3.4.0:

==================================
struct A {};
void foo() { A().A::~~A(); }
==================================

Mainline's error message reads:

bug.cc: In function 'void foo()':
bug.cc:2: error: expected class-name before '~' token
bug.cc:2: error: expected `;' before '~' token
bug.cc:2: internal compiler error: in gimplify_expr, at gimplify.c:4065
Please submit a full bug report, [etc.]

-- 
           Summary: [3.4/4.0 regression] ICE on invalid destructor call
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code, error-recovery, monitored
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: reichelt at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org


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



More information about the Gcc-bugs mailing list