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
* [Bug c++/30294] [4.0/4.1/4.2/4.3 regression] ICE with extern "Java" in ocp_convert
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 ` reichelt at gcc dot gnu dot org
2006-12-26 22:20 ` pinskia at gcc dot gnu dot org
` (9 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-12-26 11:10 UTC (permalink / raw)
To: gcc-bugs
--
reichelt at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.0.4
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30294
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/30294] [4.0/4.1/4.2/4.3 regression] ICE with extern "Java" in ocp_convert
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
` (8 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-12-26 22:20 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pinskia at gcc dot gnu dot org 2006-12-26 22:20 -------
Confirmed.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2006-12-26 22:20:07
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30294
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/30294] [4.0/4.1/4.2/4.3 regression] ICE with extern "Java" in ocp_convert
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
` (7 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2007-01-25 6:03 UTC (permalink / raw)
To: gcc-bugs
--
mmitchel at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30294
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/30294] [4.0/4.1/4.2/4.3 regression] ICE with extern "Java" in ocp_convert
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
` (2 preceding siblings ...)
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
` (6 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: gdr at gcc dot gnu dot org @ 2007-02-03 21:22 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from gdr at gcc dot gnu dot org 2007-02-03 21:22 -------
won't fix in GCC-4.0.x. Adjusting milestone.
--
gdr at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.0.4 |4.1.3
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30294
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/30294] [4.0/4.1/4.2/4.3 regression] ICE with extern "Java" in ocp_convert
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
` (3 preceding siblings ...)
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
` (5 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-02-03 21:25 UTC (permalink / raw)
To: gcc-bugs
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.1.3 |4.1.2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30294
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/30294] [4.0/4.1/4.2/4.3 regression] ICE with extern "Java" in ocp_convert
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
` (4 preceding siblings ...)
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
` (4 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2007-02-14 9:37 UTC (permalink / raw)
To: gcc-bugs
--
mmitchel at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.1.2 |4.1.3
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30294
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/30294] [4.0/4.1/4.2/4.3 regression] ICE with extern "Java" in ocp_convert
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
` (5 preceding siblings ...)
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
` (3 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: jakub at gcc dot gnu dot org @ 2007-11-22 10:12 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from jakub at gcc dot gnu dot org 2007-11-22 10:11 -------
Testing a patch.
--
jakub at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |jakub at gcc dot gnu dot org
|dot org |
Status|NEW |ASSIGNED
Last reconfirmed|2007-08-06 14:53:11 |2007-11-22 10:11:49
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30294
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/30294] [4.0/4.1/4.2/4.3 regression] ICE with extern "Java" in ocp_convert
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
` (6 preceding siblings ...)
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
` (2 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: jakub at gcc dot gnu dot org @ 2007-11-23 20:49 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from jakub at gcc dot gnu dot org 2007-11-23 20:49 -------
Subject: Bug 30294
Author: jakub
Date: Fri Nov 23 20:49:02 2007
New Revision: 130382
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=130382
Log:
PR c++/30293
PR c++/30294
* decl.c (cp_finish_decl): Disallow variable or field
definitions if extern "Java" aggregates.
(grokparms): Disallow parameters with extern "Java"
aggregates.
(check_function_type): Disallow function return values
with extern "Java" aggregates.
* init.c (build_new_1): Disallow placement new with
extern "Java" aggregates.
* g++.dg/ext/java-2.C: New test.
Added:
trunk/gcc/testsuite/g++.dg/ext/java-2.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/decl.c
trunk/gcc/cp/init.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30294
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/30294] [4.0/4.1/4.2 regression] ICE with extern "Java" in ocp_convert
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
` (7 preceding siblings ...)
2007-11-23 20:49 ` jakub at gcc dot gnu dot org
@ 2007-11-23 20:50 ` 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
10 siblings, 0 replies; 12+ messages in thread
From: jakub at gcc dot gnu dot org @ 2007-11-23 20:50 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from jakub at gcc dot gnu dot org 2007-11-23 20:50 -------
Fixed on the trunk.
--
jakub at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|[4.0/4.1/4.2/4.3 regression]|[4.0/4.1/4.2 regression] ICE
|ICE with extern "Java" in |with extern "Java" in
|ocp_convert |ocp_convert
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30294
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/30294] [4.2 regression] ICE with extern "Java" in ocp_convert
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
` (8 preceding siblings ...)
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 ` jsm28 at gcc dot gnu dot org
2009-03-30 20:18 ` jsm28 at gcc dot gnu dot org
10 siblings, 0 replies; 12+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2008-07-04 21:47 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from jsm28 at gcc dot gnu dot org 2008-07-04 21:46 -------
Closing 4.1 branch.
--
jsm28 at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|[4.1/4.2 regression] ICE |[4.2 regression] ICE with
|with extern "Java" in |extern "Java" in ocp_convert
|ocp_convert |
Target Milestone|4.1.3 |4.2.5
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30294
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/30294] [4.2 regression] ICE with extern "Java" in ocp_convert
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
` (9 preceding siblings ...)
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
10 siblings, 0 replies; 12+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2009-03-30 20:18 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from jsm28 at gcc dot gnu dot org 2009-03-30 20:18 -------
Closing 4.2 branch, fixed in 4.3.
--
jsm28 at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Known to fail|4.0.4 |4.0.4 4.2.5
Known to work| |4.3.0
Resolution| |FIXED
Target Milestone|4.2.5 |4.3.0
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).