public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/58639] New: ICE on self-referential struct member
@ 2013-10-06  4:51 dirtyepic at gentoo dot org
  2013-10-06 16:17 ` [Bug c++/58639] " vlukas at gmx dot de
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: dirtyepic at gentoo dot org @ 2013-10-06  4:51 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 58639
           Summary: ICE on self-referential struct member
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dirtyepic at gentoo dot org

#include <vector>

struct node
{
    node &parent;
};

void f()
{
    std::vector<node> v;
    v.push_back({});
}

$ g++ -std=c++11 487010.cxx
g++: internal compiler error: Segmentation fault (program cc1plus)

ICE with trunk, 4.8.1, 4.7.3, and 4.6.4 with -std=c++0x.  4.5.4 correctly gives
an error.


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

end of thread, other threads:[~2014-01-28 14:01 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-06  4:51 [Bug c++/58639] New: ICE on self-referential struct member dirtyepic at gentoo dot org
2013-10-06 16:17 ` [Bug c++/58639] " vlukas at gmx dot de
2013-10-10 11:59 ` [Bug c++/58639] [4.7/4.8/4.9 Regression] " rguenth at gcc dot gnu.org
2013-11-05 14:51 ` rguenth at gcc dot gnu.org
2014-01-27 17:20 ` jason at gcc dot gnu.org
2014-01-28  4:31 ` jason at gcc dot gnu.org
2014-01-28 13:45 ` jason at gcc dot gnu.org
2014-01-28 14:01 ` jason at gcc dot gnu.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).