From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7591 invoked by alias); 17 Oct 2011 17:17:01 -0000 Received: (qmail 7572 invoked by uid 22791); 17 Oct 2011 17:17:00 -0000 X-SWARE-Spam-Status: No, hits=-2.7 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,TW_BJ,TW_CX,TW_DC,TW_GX X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 17 Oct 2011 17:16:41 +0000 From: "stephane at magnenat dot net" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/50761] New: g++ internal compiler error using std::initializer_list Date: Mon, 17 Oct 2011 17:17:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: stephane at magnenat dot net X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 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 X-SW-Source: 2011-10/txt/msg01664.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D50761 Bug #: 50761 Summary: g++ internal compiler error using std::initializer_list Classification: Unclassified Product: gcc Version: 4.5.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned@gcc.gnu.org ReportedBy: stephane@magnenat.net Created attachment 25524 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=3D25524 broken code The C++11 code in attachment generates an internal compiler error in g++: test.cpp: In function =E2=80=98int main()=E2=80=99: test.cpp:19:3: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. gcc -v Using built-in specs. COLLECT_GCC=3Dgcc COLLECT_LTO_WRAPPER=3D/usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5.2/= lto-wrapper Target: x86_64-linux-gnu Configured with: ../src/configure -v --with-pkgversion=3D'Ubuntu/Linaro 4.5.2-8ubuntu4' --with-bugurl=3Dfile:///usr/share/doc/gcc-4.5/README.Bugs --enable-languages=3Dc,c++,fortran,objc,obj-c++ --prefix=3D/usr --program-suffix=3D-4.5 --enable-shared --enable-multiarch --with-multiarch-defaults=3Dx86_64-linux-gnu --enable-linker-build-id --with-system-zlib --libexecdir=3D/usr/lib/x86_64-linux-gnu --without-included-gettext --enable-threads=3Dposix --with-gxx-include-dir=3D/usr/include/c++/4.5 --libdir=3D/usr/lib/x86_64-li= nux-gnu --enable-nls --with-sysroot=3D/ --enable-clocale=3Dgnu --enable-libstdcxx-d= ebug --enable-libstdcxx-time=3Dyes --enable-plugin --enable-gold --enable-ld=3Dd= efault --with-plugin-ld=3Dld.gold --enable-objc-gc --disable-werror --with-arch-32= =3Di686 --with-tune=3Dgeneric --enable-checking=3Drelease --build=3Dx86_64-linux-gnu --host=3Dx86_64-linux-gnu --target=3Dx86_64-linux-gnu Thread model: posix gcc version 4.5.2 (Ubuntu/Linaro 4.5.2-8ubuntu4)