[Bug c++/58639] New: ICE on self-referential struct member
dirtyepic at gentoo dot org
gcc-bugzilla@gcc.gnu.org
Sun Oct 6 04:51:00 GMT 2013
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.
More information about the Gcc-bugs
mailing list