From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20166 invoked by alias); 5 Feb 2014 14:03:42 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 19699 invoked by uid 48); 5 Feb 2014 14:03:36 -0000 From: "sam at wavestore dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/59832] [c++11] ICE in reshape_init_class with initializer list Date: Wed, 05 Feb 2014 14:03:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: sam at wavestore dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-02/txt/msg00412.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D59832 Sam Kellett changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |sam at wavestore dot com --- Comment #1 from Sam Kellett --- Created attachment 32048 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=3D32048&action=3Dedit Preprocessed source I think this is another example of the same bug: #include struct Message { typedef union { char byte; const char *str; } Parameter; Parameter p1; Parameter p2; }; int main() { std::vector messages_; messages_.push_back({{ .byte =3D 'a' }}); Message message =3D {{ .byte =3D 'a' }, { .str =3D "Hello World" }}; messages_.push_back(message); messages_.push_back({{ .byte =3D 'a' }, { .str =3D "Hello World" }}); } Outputs: union.cpp: In function =E2=80=98int main()=E2=80=99: union.cpp:23:66: internal compiler error: in reshape_init_class, at cp/decl.c:5216 messages_.push_back({{ .byte =3D 'a' }, { .str =3D "Hello World" }}); ^ Please submit a full bug report, with preprocessed source if appropriate. See for instructions. Preprocessed source stored into /tmp/ccbxyQRY.out file, please attach this = to your bugreport. >>From gcc-bugs-return-442656-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 05 14:05:57 2014 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 24322 invoked by alias); 5 Feb 2014 14:05:56 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 24292 invoked by uid 48); 5 Feb 2014 14:05:53 -0000 From: "sam at wavestore dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/59832] [c++11] ICE in reshape_init_class with initializer list Date: Wed, 05 Feb 2014 14:05:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: sam at wavestore dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-02/txt/msg00413.txt.bz2 Content-length: 148 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59832 --- Comment #2 from Sam Kellett --- Using gcc v4.8.2 I should add...