public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/27492] New: [4.0/4.1/4.2 regression] ICE on invalid covariant return type
@ 2006-05-08 15:17 reichelt at gcc dot gnu dot org
2006-05-08 15:43 ` [Bug c++/27492] " pinskia at gcc dot gnu dot org
` (12 more replies)
0 siblings, 13 replies; 14+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-05-08 15:17 UTC (permalink / raw)
To: gcc-bugs
The following invalid code snippet causes an ICE since GCC 4.0.3:
=================================
struct A {};
class B : A
{
virtual A* foo();
};
struct C : virtual B
{
virtual C* foo();
};
C* C::foo() { return 0; }
struct D : C {};
=================================
bug.cc:10: error: invalid covariant return type for 'virtual C* C::foo()'
bug.cc:5: error: overriding 'virtual A* B::foo()'
bug.cc:15: internal compiler error: in make_thunk, at cp/method.c:129
Please submit a full bug report, [etc.]
--
Summary: [4.0/4.1/4.2 regression] ICE on invalid covariant return
type
Product: gcc
Version: 4.2.0
Status: UNCONFIRMED
Keywords: ice-on-invalid-code, error-recovery, 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=27492
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/27492] [4.0/4.1/4.2 regression] ICE on invalid covariant return type
2006-05-08 15:17 [Bug c++/27492] New: [4.0/4.1/4.2 regression] ICE on invalid covariant return type reichelt at gcc dot gnu dot org
@ 2006-05-08 15:43 ` pinskia at gcc dot gnu dot org
2006-05-09 16:35 ` pinskia at gcc dot gnu dot org
` (11 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-05-08 15:43 UTC (permalink / raw)
To: gcc-bugs
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |minor
Target Milestone|--- |4.1.1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27492
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/27492] [4.0/4.1/4.2 regression] ICE on invalid covariant return type
2006-05-08 15:17 [Bug c++/27492] New: [4.0/4.1/4.2 regression] ICE on invalid covariant return type reichelt at gcc dot gnu dot org
2006-05-08 15:43 ` [Bug c++/27492] " pinskia at gcc dot gnu dot org
@ 2006-05-09 16:35 ` pinskia at gcc dot gnu dot org
2006-05-14 22:37 ` mmitchel at gcc dot gnu dot org
` (10 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-05-09 16:35 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pinskia at gcc dot gnu dot org 2006-05-09 16:35 -------
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-05-09 16:35:50
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27492
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/27492] [4.0/4.1/4.2 regression] ICE on invalid covariant return type
2006-05-08 15:17 [Bug c++/27492] New: [4.0/4.1/4.2 regression] ICE on invalid covariant return type reichelt at gcc dot gnu dot org
2006-05-08 15:43 ` [Bug c++/27492] " pinskia at gcc dot gnu dot org
2006-05-09 16:35 ` pinskia at gcc dot gnu dot org
@ 2006-05-14 22:37 ` mmitchel at gcc dot gnu dot org
2006-05-25 2:42 ` mmitchel at gcc dot gnu dot org
` (9 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-05-14 22:37 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=27492
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/27492] [4.0/4.1/4.2 regression] ICE on invalid covariant return type
2006-05-08 15:17 [Bug c++/27492] New: [4.0/4.1/4.2 regression] ICE on invalid covariant return type reichelt at gcc dot gnu dot org
` (2 preceding siblings ...)
2006-05-14 22:37 ` mmitchel at gcc dot gnu dot org
@ 2006-05-25 2:42 ` mmitchel at gcc dot gnu dot org
2006-07-17 3:22 ` mmitchel at gcc dot gnu dot org
` (8 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-05-25 2:42 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from mmitchel at gcc dot gnu dot org 2006-05-25 02:34 -------
Will not be fixed in 4.1.1; adjust target milestone to 4.1.2.
--
mmitchel at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.1.1 |4.1.2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27492
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/27492] [4.0/4.1/4.2 regression] ICE on invalid covariant return type
2006-05-08 15:17 [Bug c++/27492] New: [4.0/4.1/4.2 regression] ICE on invalid covariant return type reichelt at gcc dot gnu dot org
` (3 preceding siblings ...)
2006-05-25 2:42 ` mmitchel at gcc dot gnu dot org
@ 2006-07-17 3:22 ` mmitchel at gcc dot gnu dot org
2007-01-12 22:57 ` [Bug c++/27492] [4.0/4.1/4.2/4.3 " simartin at gcc dot gnu dot org
` (7 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-07-17 3:22 UTC (permalink / raw)
To: gcc-bugs
--
mmitchel at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P2 |P4
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27492
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/27492] [4.0/4.1/4.2/4.3 regression] ICE on invalid covariant return type
2006-05-08 15:17 [Bug c++/27492] New: [4.0/4.1/4.2 regression] ICE on invalid covariant return type reichelt at gcc dot gnu dot org
` (4 preceding siblings ...)
2006-07-17 3:22 ` mmitchel at gcc dot gnu dot org
@ 2007-01-12 22:57 ` simartin at gcc dot gnu dot org
2007-01-16 0:57 ` patchapp at dberlin dot org
` (6 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: simartin at gcc dot gnu dot org @ 2007-01-12 22:57 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from simartin at gcc dot gnu dot org 2007-01-12 22:57 -------
I am testing a patch for this one.
--
simartin at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |simartin at gcc dot gnu dot
| |org
AssignedTo|unassigned at gcc dot gnu |simartin at gcc dot gnu dot
|dot org |org
Status|NEW |ASSIGNED
Last reconfirmed|2006-10-21 21:32:56 |2007-01-12 22:57:44
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27492
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/27492] [4.0/4.1/4.2/4.3 regression] ICE on invalid covariant return type
2006-05-08 15:17 [Bug c++/27492] New: [4.0/4.1/4.2 regression] ICE on invalid covariant return type reichelt at gcc dot gnu dot org
` (5 preceding siblings ...)
2007-01-12 22:57 ` [Bug c++/27492] [4.0/4.1/4.2/4.3 " simartin at gcc dot gnu dot org
@ 2007-01-16 0:57 ` patchapp at dberlin dot org
2007-01-23 22:34 ` simartin at gcc dot gnu dot org
` (5 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: patchapp at dberlin dot org @ 2007-01-16 0:57 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from patchapp at dberlin dot org 2007-01-16 00:57 -------
Subject: Bug number PR c++/27492
A patch for this bug has been added to the patch tracker.
The mailing list url for the patch is
http://gcc.gnu.org/ml/gcc-patches/2007-01/msg01124.html
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27492
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/27492] [4.0/4.1/4.2/4.3 regression] ICE on invalid covariant return type
2006-05-08 15:17 [Bug c++/27492] New: [4.0/4.1/4.2 regression] ICE on invalid covariant return type reichelt at gcc dot gnu dot org
` (6 preceding siblings ...)
2007-01-16 0:57 ` patchapp at dberlin dot org
@ 2007-01-23 22:34 ` simartin at gcc dot gnu dot org
2007-01-24 18:43 ` [Bug c++/27492] [4.0/4.1/4.2 " simartin at gcc dot gnu dot org
` (4 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: simartin at gcc dot gnu dot org @ 2007-01-23 22:34 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from simartin at gcc dot gnu dot org 2007-01-23 22:34 -------
Subject: Bug 27492
Author: simartin
Date: Tue Jan 23 22:33:51 2007
New Revision: 121089
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=121089
Log:
2007-01-23 Simon Martin <simartin@users.sourceforge.net>
PR c++/27492
* decl.c (duplicate_decls): Don't reset DECL_INVALID_OVERRIDER_P for
function decls.
Added:
trunk/gcc/testsuite/g++.dg/inherit/covariant15.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/decl.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27492
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/27492] [4.0/4.1/4.2 regression] ICE on invalid covariant return type
2006-05-08 15:17 [Bug c++/27492] New: [4.0/4.1/4.2 regression] ICE on invalid covariant return type reichelt at gcc dot gnu dot org
` (7 preceding siblings ...)
2007-01-23 22:34 ` simartin at gcc dot gnu dot org
@ 2007-01-24 18:43 ` simartin at gcc dot gnu dot org
2007-02-14 9:27 ` mmitchel at gcc dot gnu dot org
` (3 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: simartin at gcc dot gnu dot org @ 2007-01-24 18:43 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from simartin at gcc dot gnu dot org 2007-01-24 18:43 -------
Fixed on the mainline
--
simartin 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 on invalid covariant |on invalid covariant return
|return type |type
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27492
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/27492] [4.0/4.1/4.2 regression] ICE on invalid covariant return type
2006-05-08 15:17 [Bug c++/27492] New: [4.0/4.1/4.2 regression] ICE on invalid covariant return type reichelt at gcc dot gnu dot org
` (8 preceding siblings ...)
2007-01-24 18:43 ` [Bug c++/27492] [4.0/4.1/4.2 " simartin at gcc dot gnu dot org
@ 2007-02-14 9:27 ` mmitchel at gcc dot gnu dot org
2007-06-27 19:54 ` simartin at gcc dot gnu dot org
` (2 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2007-02-14 9:27 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=27492
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/27492] [4.0/4.1/4.2 regression] ICE on invalid covariant return type
2006-05-08 15:17 [Bug c++/27492] New: [4.0/4.1/4.2 regression] ICE on invalid covariant return type reichelt at gcc dot gnu dot org
` (9 preceding siblings ...)
2007-02-14 9:27 ` mmitchel at gcc dot gnu dot org
@ 2007-06-27 19:54 ` simartin at gcc dot gnu dot org
2007-06-27 20:00 ` [Bug c++/27492] [4.0/4.1 " simartin at gcc dot gnu dot org
2008-07-04 15:31 ` [Bug c++/27492] [4.1 " jsm28 at gcc dot gnu dot org
12 siblings, 0 replies; 14+ messages in thread
From: simartin at gcc dot gnu dot org @ 2007-06-27 19:54 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from simartin at gcc dot gnu dot org 2007-06-27 19:53 -------
Subject: Bug 27492
Author: simartin
Date: Wed Jun 27 19:53:45 2007
New Revision: 126061
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=126061
Log:
gcc/cp/
2007-06-27 Simon Martin <simartin@users.sourceforge.net>
PR c++/27492
* decl.c (duplicate_decls): Don't reset DECL_INVALID_OVERRIDER_P for
function decls.
gcc/testsuite/
2007-06-27 Simon Martin <simartin@users.sourceforge.net>
PR c++/27492
* g++.dg/inherit/covariant15.C: New test.
Added:
branches/gcc-4_2-branch/gcc/testsuite/g++.dg/inherit/covariant15.C
Modified:
branches/gcc-4_2-branch/gcc/cp/ChangeLog
branches/gcc-4_2-branch/gcc/cp/decl.c
branches/gcc-4_2-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27492
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/27492] [4.0/4.1 regression] ICE on invalid covariant return type
2006-05-08 15:17 [Bug c++/27492] New: [4.0/4.1/4.2 regression] ICE on invalid covariant return type reichelt at gcc dot gnu dot org
` (10 preceding siblings ...)
2007-06-27 19:54 ` simartin at gcc dot gnu dot org
@ 2007-06-27 20:00 ` simartin at gcc dot gnu dot org
2008-07-04 15:31 ` [Bug c++/27492] [4.1 " jsm28 at gcc dot gnu dot org
12 siblings, 0 replies; 14+ messages in thread
From: simartin at gcc dot gnu dot org @ 2007-06-27 20:00 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from simartin at gcc dot gnu dot org 2007-06-27 19:59 -------
Fixed in 4.2 as well.
--
simartin at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|[4.0/4.1/4.2 regression] ICE|[4.0/4.1 regression] ICE on
|on invalid covariant return |invalid covariant return
|type |type
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27492
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/27492] [4.1 regression] ICE on invalid covariant return type
2006-05-08 15:17 [Bug c++/27492] New: [4.0/4.1/4.2 regression] ICE on invalid covariant return type reichelt at gcc dot gnu dot org
` (11 preceding siblings ...)
2007-06-27 20:00 ` [Bug c++/27492] [4.0/4.1 " simartin at gcc dot gnu dot org
@ 2008-07-04 15:31 ` jsm28 at gcc dot gnu dot org
12 siblings, 0 replies; 14+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2008-07-04 15:31 UTC (permalink / raw)
To: gcc-bugs
------- Comment #9 from jsm28 at gcc dot gnu dot org 2008-07-04 15:30 -------
Closing 4.1 branch.
--
jsm28 at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Known to fail|4.0.4 |4.0.4 4.1.3 4.2.0
Known to work| |4.2.1
Resolution| |FIXED
Target Milestone|4.1.3 |4.2.1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27492
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2008-07-04 15:31 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-05-08 15:17 [Bug c++/27492] New: [4.0/4.1/4.2 regression] ICE on invalid covariant return type reichelt at gcc dot gnu dot org
2006-05-08 15:43 ` [Bug c++/27492] " pinskia at gcc dot gnu dot org
2006-05-09 16:35 ` pinskia at gcc dot gnu dot org
2006-05-14 22:37 ` mmitchel at gcc dot gnu dot org
2006-05-25 2:42 ` mmitchel at gcc dot gnu dot org
2006-07-17 3:22 ` mmitchel at gcc dot gnu dot org
2007-01-12 22:57 ` [Bug c++/27492] [4.0/4.1/4.2/4.3 " simartin at gcc dot gnu dot org
2007-01-16 0:57 ` patchapp at dberlin dot org
2007-01-23 22:34 ` simartin at gcc dot gnu dot org
2007-01-24 18:43 ` [Bug c++/27492] [4.0/4.1/4.2 " simartin at gcc dot gnu dot org
2007-02-14 9:27 ` mmitchel at gcc dot gnu dot org
2007-06-27 19:54 ` simartin at gcc dot gnu dot org
2007-06-27 20:00 ` [Bug c++/27492] [4.0/4.1 " simartin at gcc dot gnu dot org
2008-07-04 15:31 ` [Bug c++/27492] [4.1 " 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).