public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/28253]  New: [4.0/4.1/4.2 regression] ICE with invalid covariant return
@ 2006-07-04 23:17 reichelt at gcc dot gnu dot org
  2006-07-04 23:24 ` [Bug c++/28253] " pinskia 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-07-04 23:17 UTC (permalink / raw)
  To: gcc-bugs

The following invalid testcase triggers an ICE since GCC 3.4.0:

=========================================
struct A
{
  virtual A* foo();
};

struct B : virtual A
{
  virtual B* foo();
};

struct C : B
{
  virtual C& foo();
};
=========================================

bug.cc:13: error: conflicting return type specified for 'virtual C& C::foo()'
bug.cc:8: error:   overriding 'virtual B* B::foo()'
bug.cc:12: internal compiler error: in update_vtable_entry_for_fn, at
cp/class.c:2105
Please submit a full bug report, [etc.]


-- 
           Summary: [4.0/4.1/4.2 regression] ICE with invalid covariant
                    return
           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=28253


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

* [Bug c++/28253] [4.0/4.1/4.2 regression] ICE with invalid covariant return
  2006-07-04 23:17 [Bug c++/28253] New: [4.0/4.1/4.2 regression] ICE with invalid covariant return reichelt at gcc dot gnu dot org
@ 2006-07-04 23:24 ` pinskia at gcc dot gnu dot org
  2006-07-17  3:05 ` mmitchel at gcc dot gnu dot org
                   ` (9 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-07-04 23:24 UTC (permalink / raw)
  To: gcc-bugs



-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |minor
   Target Milestone|---                         |4.0.4


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28253


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

* [Bug c++/28253] [4.0/4.1/4.2 regression] ICE with invalid covariant return
  2006-07-04 23:17 [Bug c++/28253] New: [4.0/4.1/4.2 regression] ICE with invalid covariant return reichelt at gcc dot gnu dot org
  2006-07-04 23:24 ` [Bug c++/28253] " pinskia at gcc dot gnu dot org
@ 2006-07-17  3:05 ` mmitchel at gcc dot gnu dot org
  2006-09-03  6:38 ` pinskia at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-07-17  3:05 UTC (permalink / raw)
  To: gcc-bugs



-- 

mmitchel at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P4


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28253


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

* [Bug c++/28253] [4.0/4.1/4.2 regression] ICE with invalid covariant return
  2006-07-04 23:17 [Bug c++/28253] New: [4.0/4.1/4.2 regression] ICE with invalid covariant return reichelt at gcc dot gnu dot org
  2006-07-04 23:24 ` [Bug c++/28253] " pinskia at gcc dot gnu dot org
  2006-07-17  3:05 ` mmitchel at gcc dot gnu dot org
@ 2006-09-03  6:38 ` pinskia at gcc dot gnu dot org
  2007-02-03 17:51 ` [Bug c++/28253] [4.0/4.1/4.2/4.3 " gdr at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-09-03  6:38 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2006-09-03 06:37 -------
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-09-03 06:37:59
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28253


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

* [Bug c++/28253] [4.0/4.1/4.2/4.3 regression] ICE with invalid covariant return
  2006-07-04 23:17 [Bug c++/28253] New: [4.0/4.1/4.2 regression] ICE with invalid covariant return reichelt at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2006-09-03  6:38 ` pinskia at gcc dot gnu dot org
@ 2007-02-03 17:51 ` gdr at gcc dot gnu dot org
  2007-02-03 20:47 ` 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 17:51 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from gdr at gcc dot gnu dot org  2007-02-03 17:51 -------
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=28253


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

* [Bug c++/28253] [4.0/4.1/4.2/4.3 regression] ICE with invalid covariant return
  2006-07-04 23:17 [Bug c++/28253] New: [4.0/4.1/4.2 regression] ICE with invalid covariant return reichelt at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2007-02-03 17:51 ` [Bug c++/28253] [4.0/4.1/4.2/4.3 " gdr at gcc dot gnu dot org
@ 2007-02-03 20:47 ` pinskia at gcc dot gnu dot org
  2007-02-14  9:25 ` 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 20:47 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=28253


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

* [Bug c++/28253] [4.0/4.1/4.2/4.3 regression] ICE with invalid covariant return
  2006-07-04 23:17 [Bug c++/28253] New: [4.0/4.1/4.2 regression] ICE with invalid covariant return reichelt at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2007-02-03 20:47 ` pinskia at gcc dot gnu dot org
@ 2007-02-14  9:25 ` mmitchel at gcc dot gnu dot org
  2007-03-01 20:30 ` patchapp at dberlin 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:25 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=28253


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

* [Bug c++/28253] [4.0/4.1/4.2/4.3 regression] ICE with invalid covariant return
  2006-07-04 23:17 [Bug c++/28253] New: [4.0/4.1/4.2 regression] ICE with invalid covariant return reichelt at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2007-02-14  9:25 ` mmitchel at gcc dot gnu dot org
@ 2007-03-01 20:30 ` patchapp at dberlin dot org
  2007-03-02 22:09 ` simartin at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: patchapp at dberlin dot org @ 2007-03-01 20:30 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from patchapp at dberlin dot org  2007-03-01 20:30 -------
Subject: Bug number PR c++/28253

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-03/msg00068.html


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28253


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

* [Bug c++/28253] [4.0/4.1/4.2/4.3 regression] ICE with invalid covariant return
  2006-07-04 23:17 [Bug c++/28253] New: [4.0/4.1/4.2 regression] ICE with invalid covariant return reichelt at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2007-03-01 20:30 ` patchapp at dberlin dot org
@ 2007-03-02 22:09 ` simartin at gcc dot gnu dot org
  2007-03-02 22:14 ` [Bug c++/28253] [4.0/4.1/4.2 " simartin at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: simartin at gcc dot gnu dot org @ 2007-03-02 22:09 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from simartin at gcc dot gnu dot org  2007-03-02 22:09 -------
Subject: Bug 28253

Author: simartin
Date: Fri Mar  2 22:09:20 2007
New Revision: 122490

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=122490
Log:
2007-03-02  Simon Martin  <simartin@users.sourceforge.net>

        PR c++/28253
        * class.c (update_vtable_entry_for_fn): Properly handle invalid
overriders
        for thunks.

Added:
    trunk/gcc/testsuite/g++.dg/inherit/covariant16.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/class.c
    trunk/gcc/testsuite/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28253


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

* [Bug c++/28253] [4.0/4.1/4.2 regression] ICE with invalid covariant return
  2006-07-04 23:17 [Bug c++/28253] New: [4.0/4.1/4.2 regression] ICE with invalid covariant return reichelt at gcc dot gnu dot org
                   ` (7 preceding siblings ...)
  2007-03-02 22:09 ` simartin at gcc dot gnu dot org
@ 2007-03-02 22:14 ` simartin at gcc dot gnu dot org
  2008-07-04 21:26 ` [Bug c++/28253] [4.2 " jsm28 at gcc dot gnu dot org
  2009-03-30 17:01 ` jsm28 at gcc dot gnu dot org
  10 siblings, 0 replies; 12+ messages in thread
From: simartin at gcc dot gnu dot org @ 2007-03-02 22:14 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from simartin at gcc dot gnu dot org  2007-03-02 22:14 -------
Fixed on the mainline


-- 

simartin at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |simartin at gcc dot gnu dot
                   |                            |org
            Summary|[4.0/4.1/4.2/4.3 regression]|[4.0/4.1/4.2 regression] ICE
                   |ICE with invalid covariant  |with invalid covariant
                   |return                      |return


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28253


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

* [Bug c++/28253] [4.2 regression] ICE with invalid covariant return
  2006-07-04 23:17 [Bug c++/28253] New: [4.0/4.1/4.2 regression] ICE with invalid covariant return reichelt at gcc dot gnu dot org
                   ` (8 preceding siblings ...)
  2007-03-02 22:14 ` [Bug c++/28253] [4.0/4.1/4.2 " simartin at gcc dot gnu dot org
@ 2008-07-04 21:26 ` jsm28 at gcc dot gnu dot org
  2009-03-30 17:01 ` 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:26 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from jsm28 at gcc dot gnu dot org  2008-07-04 21:26 -------
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 invalid covariant      |invalid covariant return
                   |return                      |
   Target Milestone|4.1.3                       |4.2.5


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28253


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

* [Bug c++/28253] [4.2 regression] ICE with invalid covariant return
  2006-07-04 23:17 [Bug c++/28253] New: [4.0/4.1/4.2 regression] ICE with invalid covariant return reichelt at gcc dot gnu dot org
                   ` (9 preceding siblings ...)
  2008-07-04 21:26 ` [Bug c++/28253] [4.2 " jsm28 at gcc dot gnu dot org
@ 2009-03-30 17:01 ` 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 17:01 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from jsm28 at gcc dot gnu dot org  2009-03-30 17:00 -------
Closing 4.2 branch, fixed in 4.3.


-- 

jsm28 at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |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=28253


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

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

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-07-04 23:17 [Bug c++/28253] New: [4.0/4.1/4.2 regression] ICE with invalid covariant return reichelt at gcc dot gnu dot org
2006-07-04 23:24 ` [Bug c++/28253] " pinskia at gcc dot gnu dot org
2006-07-17  3:05 ` mmitchel at gcc dot gnu dot org
2006-09-03  6:38 ` pinskia at gcc dot gnu dot org
2007-02-03 17:51 ` [Bug c++/28253] [4.0/4.1/4.2/4.3 " gdr at gcc dot gnu dot org
2007-02-03 20:47 ` pinskia at gcc dot gnu dot org
2007-02-14  9:25 ` mmitchel at gcc dot gnu dot org
2007-03-01 20:30 ` patchapp at dberlin dot org
2007-03-02 22:09 ` simartin at gcc dot gnu dot org
2007-03-02 22:14 ` [Bug c++/28253] [4.0/4.1/4.2 " simartin at gcc dot gnu dot org
2008-07-04 21:26 ` [Bug c++/28253] [4.2 " jsm28 at gcc dot gnu dot org
2009-03-30 17:01 ` 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).