public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/35985] [4.1/4.2/4.3/4.4 regression] ICE with pointer to member function as base
  2008-04-20 14:26 [Bug c++/35985] New: [4.1/4.2/4.3/4.4 regression] ICE with pointer to member function as base reichelt at gcc dot gnu dot org
@ 2008-04-20 14:26 ` reichelt at gcc dot gnu dot org
  2008-04-20 14:27 ` reichelt at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2008-04-20 14:26 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from reichelt at gcc dot gnu dot org  2008-04-20 14:26 -------
Testing a patch.


-- 

reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |reichelt at gcc dot gnu dot
                   |dot org                     |org
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2008-04-20 14:26:13
               date|                            |


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


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

* [Bug c++/35985]  New: [4.1/4.2/4.3/4.4 regression] ICE with pointer to member function as base
@ 2008-04-20 14:26 reichelt at gcc dot gnu dot org
  2008-04-20 14:26 ` [Bug c++/35985] " reichelt at gcc dot gnu dot org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2008-04-20 14:26 UTC (permalink / raw)
  To: gcc-bugs

The following invalid testcase triggers an ICE since GCC 4.0.0:

========================================
template<typename T> struct A : T {};

struct B;

A<void (B::*)()> a;
========================================

bug.cc: In instantiation of 'A<void (B::*)()>':
bug.cc:5:   instantiated from here
bug.cc:1: internal compiler error: Segmentation fault
Please submit a full bug report, [etc.]

Before we got an error message that wasn't quite accurate:

bug.cc: In instantiation of `A<void (B::*)()>':
bug.cc:5:   instantiated from here
bug.cc:1: error: duplicate base type `void (B::*)()' invalid


-- 
           Summary: [4.1/4.2/4.3/4.4 regression] ICE with pointer to member
                    function as base
           Product: gcc
           Version: 4.4.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=35985


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

* [Bug c++/35985] [4.1/4.2/4.3/4.4 regression] ICE with pointer to member function as base
  2008-04-20 14:26 [Bug c++/35985] New: [4.1/4.2/4.3/4.4 regression] ICE with pointer to member function as base reichelt at gcc dot gnu dot org
  2008-04-20 14:26 ` [Bug c++/35985] " reichelt at gcc dot gnu dot org
@ 2008-04-20 14:27 ` reichelt at gcc dot gnu dot org
  2008-04-28  4:40 ` mmitchel at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2008-04-20 14:27 UTC (permalink / raw)
  To: gcc-bugs



-- 

reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.1.3


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


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

* [Bug c++/35985] [4.1/4.2/4.3/4.4 regression] ICE with pointer to member function as base
  2008-04-20 14:26 [Bug c++/35985] New: [4.1/4.2/4.3/4.4 regression] ICE with pointer to member function as base reichelt at gcc dot gnu dot org
  2008-04-20 14:26 ` [Bug c++/35985] " reichelt at gcc dot gnu dot org
  2008-04-20 14:27 ` reichelt at gcc dot gnu dot org
@ 2008-04-28  4:40 ` mmitchel at gcc dot gnu dot org
  2008-07-04 22:42 ` [Bug c++/35985] [4.2/4.3/4.4 " jsm28 at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2008-04-28  4:40 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=35985


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

* [Bug c++/35985] [4.2/4.3/4.4 regression] ICE with pointer to member function as base
  2008-04-20 14:26 [Bug c++/35985] New: [4.1/4.2/4.3/4.4 regression] ICE with pointer to member function as base reichelt at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2008-04-28  4:40 ` mmitchel at gcc dot gnu dot org
@ 2008-07-04 22:42 ` jsm28 at gcc dot gnu dot org
  2008-07-30 11:58 ` jakub at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2008-07-04 22:42 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from jsm28 at gcc dot gnu dot org  2008-07-04 22:41 -------
Closing 4.1 branch.


-- 

jsm28 at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[4.1/4.2/4.3/4.4 regression]|[4.2/4.3/4.4 regression] ICE
                   |ICE with pointer to member  |with pointer to member
                   |function as base            |function as base
   Target Milestone|4.1.3                       |4.2.5


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


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

* [Bug c++/35985] [4.2/4.3/4.4 regression] ICE with pointer to member function as base
  2008-04-20 14:26 [Bug c++/35985] New: [4.1/4.2/4.3/4.4 regression] ICE with pointer to member function as base reichelt at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2008-07-04 22:42 ` [Bug c++/35985] [4.2/4.3/4.4 " jsm28 at gcc dot gnu dot org
@ 2008-07-30 11:58 ` jakub at gcc dot gnu dot org
  2008-08-08 21:20 ` reichelt at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-07-30 11:58 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from jakub at gcc dot gnu dot org  2008-07-30 11:57 -------
Patch has been posted 3 months ago.


-- 

jakub at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mmitchel at gcc dot gnu dot
                   |                            |org, jason at gcc dot gnu
                   |                            |dot org


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


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

* [Bug c++/35985] [4.2/4.3/4.4 regression] ICE with pointer to member function as base
  2008-04-20 14:26 [Bug c++/35985] New: [4.1/4.2/4.3/4.4 regression] ICE with pointer to member function as base reichelt at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2008-07-30 11:58 ` jakub at gcc dot gnu dot org
@ 2008-08-08 21:20 ` reichelt at gcc dot gnu dot org
  2008-08-08 21:24 ` [Bug c++/35985] [4.2/4.3 " reichelt at gcc dot gnu dot org
  2009-01-15 16:09 ` rguenth at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2008-08-08 21:20 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from reichelt at gcc dot gnu dot org  2008-08-08 21:19 -------
Subject: Bug 35985

Author: reichelt
Date: Fri Aug  8 21:17:54 2008
New Revision: 138886

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=138886
Log:
        PR c++/35985
        * decl.c (xref_basetypes): Check base for MAYBE_CLASS_TYPE_P,
        and make sure it is not a union.

        * g++.dg/inherit/base3.C: New.

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


-- 


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


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

* [Bug c++/35985] [4.2/4.3 regression] ICE with pointer to member function as base
  2008-04-20 14:26 [Bug c++/35985] New: [4.1/4.2/4.3/4.4 regression] ICE with pointer to member function as base reichelt at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2008-08-08 21:20 ` reichelt at gcc dot gnu dot org
@ 2008-08-08 21:24 ` reichelt at gcc dot gnu dot org
  2009-01-15 16:09 ` rguenth at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2008-08-08 21:24 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from reichelt at gcc dot gnu dot org  2008-08-08 21:22 -------
Fixed on mainline.

Btw, the patch was approved here:
http://gcc.gnu.org/ml/gcc-patches/2008-06/msg00194.html


-- 

reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                URL|http://gcc.gnu.org/ml/gcc-  |http://gcc.gnu.org/ml/gcc-
                   |patches/2008-               |patches/2008-
                   |04/msg01530.html            |05/msg00542.html
            Summary|[4.2/4.3/4.4 regression] ICE|[4.2/4.3 regression] ICE
                   |with pointer to member      |with pointer to member
                   |function as base            |function as base


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


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

* [Bug c++/35985] [4.2/4.3 regression] ICE with pointer to member function as base
  2008-04-20 14:26 [Bug c++/35985] New: [4.1/4.2/4.3/4.4 regression] ICE with pointer to member function as base reichelt at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2008-08-08 21:24 ` [Bug c++/35985] [4.2/4.3 " reichelt at gcc dot gnu dot org
@ 2009-01-15 16:09 ` rguenth at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-01-15 16:09 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from rguenth at gcc dot gnu dot org  2009-01-15 16:08 -------
Fixed for GCC 4.4.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
      Known to fail|                            |4.3.2
      Known to work|                            |4.4.0
         Resolution|                            |FIXED
   Target Milestone|4.2.5                       |4.4.0


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


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

end of thread, other threads:[~2009-01-15 16:09 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-04-20 14:26 [Bug c++/35985] New: [4.1/4.2/4.3/4.4 regression] ICE with pointer to member function as base reichelt at gcc dot gnu dot org
2008-04-20 14:26 ` [Bug c++/35985] " reichelt at gcc dot gnu dot org
2008-04-20 14:27 ` reichelt at gcc dot gnu dot org
2008-04-28  4:40 ` mmitchel at gcc dot gnu dot org
2008-07-04 22:42 ` [Bug c++/35985] [4.2/4.3/4.4 " jsm28 at gcc dot gnu dot org
2008-07-30 11:58 ` jakub at gcc dot gnu dot org
2008-08-08 21:20 ` reichelt at gcc dot gnu dot org
2008-08-08 21:24 ` [Bug c++/35985] [4.2/4.3 " reichelt at gcc dot gnu dot org
2009-01-15 16:09 ` rguenth 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).