[Bug c++/30294] New: [4.0/4.1/4.2/4.3 regression] ICE with extern "Java" in ocp_convert

reichelt at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Tue Dec 26 11:10:00 GMT 2006


The following code snippet triggers an ICE since GCC 4.0.0:

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

const A foo()
{
  A a;
  return a;
}
==================================

bug.cc: In function 'const A foo()':
bug.cc:6: internal compiler error: in ocp_convert, at cp/cvt.c:658
Please submit a full bug report, [etc.]

With GCC 3.4.x we got the message:

bug.cc: In function `const A foo()':
bug.cc:6: error: no matching function for call to `A::A(A&)'

This is probably related to PR30293.


-- 
           Summary: [4.0/4.1/4.2/4.3 regression] ICE with extern "Java" in
                    ocp_convert
           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=30294



More information about the Gcc-bugs mailing list