public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/30294]  New: [4.0/4.1/4.2/4.3 regression] ICE with extern "Java" in ocp_convert
@ 2006-12-26 11:10 reichelt at gcc dot gnu dot org
  2006-12-26 11:10 ` [Bug c++/30294] " reichelt at gcc dot gnu dot org
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-12-26 11:10 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2009-03-30 20:18 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-12-26 11:10 [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
2006-12-26 11:10 ` [Bug c++/30294] " reichelt at gcc dot gnu dot org
2006-12-26 22:20 ` pinskia at gcc dot gnu dot org
2007-01-25  6:03 ` mmitchel at gcc dot gnu dot org
2007-02-03 21:22 ` gdr at gcc dot gnu dot org
2007-02-03 21:25 ` pinskia at gcc dot gnu dot org
2007-02-14  9:37 ` mmitchel at gcc dot gnu dot org
2007-11-22 10:12 ` jakub at gcc dot gnu dot org
2007-11-23 20:49 ` jakub at gcc dot gnu dot org
2007-11-23 20:50 ` [Bug c++/30294] [4.0/4.1/4.2 " jakub at gcc dot gnu dot org
2008-07-04 21:47 ` [Bug c++/30294] [4.2 " jsm28 at gcc dot gnu dot org
2009-03-30 20:18 ` jsm28 at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).