From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9363 invoked by alias); 9 Dec 2010 18:54:00 -0000 Received: (qmail 9351 invoked by uid 22791); 9 Dec 2010 18:53:59 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 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; Thu, 09 Dec 2010 18:53:54 +0000 From: "zsojka at seznam dot cz" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/46877] New: [C++0x] ICE: in build_data_member_initialization, at cp/semantics.c:5502 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: zsojka at seznam dot cz 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" MIME-Version: 1.0 Date: Thu, 09 Dec 2010 18:54:00 -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 X-SW-Source: 2010-12/txt/msg01037.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46877 Summary: [C++0x] ICE: in build_data_member_initialization, at cp/semantics.c:5502 Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned@gcc.gnu.org ReportedBy: zsojka@seznam.cz CC: jason@gcc.gnu.org Created attachment 22697 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22697 reduced testcase +++ This bug was initially created as a clone of Bug #46873 +++ ----- original.C ----- #include #include void foo() { const std::string s; std::map::value_type(s, s); } ---------------------- Hopefully correctly reduced testcase is attached. Compiler output (for original.C): $ gcc -std=c++0x original.C In file included from /mnt/svn/gcc-trunk/binary-167556-lto-fortran-checking-yes-rtl-df/lib/gcc/x86_64-unknown-linux-gnu/4.6.0/../../../../include/c++/4.6.0/bits/stl_algobase.h:65:0, from /mnt/svn/gcc-trunk/binary-167556-lto-fortran-checking-yes-rtl-df/lib/gcc/x86_64-unknown-linux-gnu/4.6.0/../../../../include/c++/4.6.0/bits/stl_tree.h:63, from /mnt/svn/gcc-trunk/binary-167556-lto-fortran-checking-yes-rtl-df/lib/gcc/x86_64-unknown-linux-gnu/4.6.0/../../../../include/c++/4.6.0/map:60, from original.C:1: /mnt/svn/gcc-trunk/binary-167556-lto-fortran-checking-yes-rtl-df/lib/gcc/x86_64-unknown-linux-gnu/4.6.0/../../../../include/c++/4.6.0/bits/stl_pair.h: In constructor 'constexpr std::pair<_T1, _T2>::pair(const _T1&, const _T2&) [with _T1 = const std::basic_string, _T2 = std::basic_string]': original.C:7:53: instantiated from here /mnt/svn/gcc-trunk/binary-167556-lto-fortran-checking-yes-rtl-df/lib/gcc/x86_64-unknown-linux-gnu/4.6.0/../../../../include/c++/4.6.0/bits/stl_pair.h:102:35: internal compiler error: in build_data_member_initialization, at cp/semantics.c:5502 Please submit a full bug report, with preprocessed source if appropriate. See for instructions. Compiler output (for attached reduced testcase.C): $ gcc -std=c++0x testcase.C testcase.C: In constructor 'constexpr pair::pair()': testcase.C:19:3: internal compiler error: in build_data_member_initialization, at cp/semantics.c:5502 Please submit a full bug report, with preprocessed source if appropriate. See for instructions. Tested revisions: r167556 - crash