http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59832
Sam Kellett <sam at wavestore dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |sam at wavestore dot com --- Comment #1 from Sam Kellett <sam at wavestore dot com> --- Created attachment 32048 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=32048&action=edit Preprocessed source I think this is another example of the same bug: #include <vector> struct Message { typedef union { char byte; const char *str; } Parameter; Parameter p1; Parameter p2; }; int main() { std::vector<Message> messages_; messages_.push_back({{ .byte = 'a' }}); Message message = {{ .byte = 'a' }, { .str = "Hello World" }}; messages_.push_back(message); messages_.push_back({{ .byte = 'a' }, { .str = "Hello World" }}); } Outputs: union.cpp: In function ‘int main()’: union.cpp:23:66: internal compiler error: in reshape_init_class, at cp/decl.c:5216 messages_.push_back({{ .byte = 'a' }, { .str = "Hello World" }}); ^ Please submit a full bug report, with preprocessed source if appropriate. See <http://bugzilla.redhat.com/bugzilla> for instructions. Preprocessed source stored into /tmp/ccbxyQRY.out file, please attach this to your bugreport.