The following code snippet triggers an ICE since GCC 4.0.0:

==================================
extern "Java" struct A {};

A a = A();
==================================

bug.cc:3: internal compiler error: in store_init_value, at cp/typeck2.c:598
Please submit a full bug report, [etc.]

With GCC 3.4.x we got the message:

bug.cc:3: error: no matching function for call to `A::A(A)'


-- 
           Summary: [4.0/4.1/4.2/4.3 regression] ICE with extern "Java" in
                    store_init_value
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code, 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=30293

Reply via email to