public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/28346]  New: [4.0/4.1/4.2 regression] ICE creating pointer-to-reference-member
@ 2006-07-11 16:11 reichelt at gcc dot gnu dot org
  2006-07-11 16:15 ` [Bug c++/28346] " reichelt at gcc dot gnu dot org
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-07-11 16:11 UTC (permalink / raw)
  To: gcc-bugs

The following invalid code snippet triggers an ICE since GCC 4.0.0:

=========================================
template<int> struct A
{
    int& i;
    A();
    ~A() { &A::i; }
};

A<0> a;
=========================================

bug.cc: In destructor 'A<<anonymous> >::~A() [with int <anonymous> = 0]':
bug.cc:9:   instantiated from here
bug.cc:6: internal compiler error: in gimplify_expr, at gimplify.c:5763
Please submit a full bug report, [etc.]

Before we got the error message:

bug.cc: In destructor `void A<<anonymous> >::A() [with int <anonymous> = 0]':
bug.cc:9:   instantiated from here
bug.cc:6: cannot create pointer to reference member `A<0>::i'


-- 
           Summary: [4.0/4.1/4.2 regression] ICE creating pointer-to-
                    reference-member
           Product: gcc
           Version: 4.2.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=28346


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

end of thread, other threads:[~2007-02-03 18:02 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-07-11 16:11 [Bug c++/28346] New: [4.0/4.1/4.2 regression] ICE creating pointer-to-reference-member reichelt at gcc dot gnu dot org
2006-07-11 16:15 ` [Bug c++/28346] " reichelt at gcc dot gnu dot org
2006-07-17  3:13 ` mmitchel at gcc dot gnu dot org
2006-08-12 21:38 ` janis at gcc dot gnu dot org
2006-08-14 19:04 ` reichelt at gcc dot gnu dot org
2006-08-17  2:37 ` mmitchel at gcc dot gnu dot org
2006-08-20 23:53 ` mmitchel at gcc dot gnu dot org
2006-08-21  0:00 ` [Bug c++/28346] [4.0/4.1 " mmitchel at gcc dot gnu dot org
2006-08-21  0:43 ` [Bug c++/28346] [4.0 " mmitchel at gcc dot gnu dot org
2006-08-21  0:43 ` mmitchel at gcc dot gnu dot org
2006-10-05 23:29 ` reichelt at gcc dot gnu dot org
2006-10-05 23:29 ` reichelt at gcc dot gnu dot org
2007-02-03 18:02 ` gdr 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).