public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [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

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).