From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3638 invoked by alias); 29 Nov 2010 04:23:39 -0000 Received: (qmail 3623 invoked by uid 22791); 29 Nov 2010 04:23:38 -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; Mon, 29 Nov 2010 04:23:34 +0000 From: "miles at gnu dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/46701] New: internal compiler error: in build_data_member_initialization, at cp/semantics.c:5503 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: miles at gnu dot org 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: Mon, 29 Nov 2010 04:38: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-11/txt/msg03484.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46701 Summary: internal compiler error: in build_data_member_initialization, at cp/semantics.c:5503 Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned@gcc.gnu.org ReportedBy: miles@gnu.org I don't know if this is the same as the other ICEs in build_data_member_initialization, but it's at a different line number anyway... Compiler version is: g++ (Debian 20101128-1) 4.6.0 20101128 (experimental) [trunk revision 167220] Here's the un-preprocessed source (preprocessed source attached): #include #include void f (const std::string &name, const std::string &val) { std::map::value_type (name, val); } Compiled with: g++-snapshot -c -std=c++0x ,oink.cc yields: In file included from /usr/lib/gcc-snapshot/lib/gcc/x86_64-linux-gnu/4.6.0/../../../../include/c++/4.6.0/bits/stl_algobase.h:65:0, from /usr/lib/gcc-snapshot/lib/gcc/x86_64-linux-gnu/4.6.0/../../../../include/c++/4.6.0/bits/char_traits.h:41, from /usr/lib/gcc-snapshot/lib/gcc/x86_64-linux-gnu/4.6.0/../../../../include/c++/4.6.0/string:42, from ,oink.cc:1: /usr/lib/gcc-snapshot/lib/gcc/x86_64-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]': ,oink.cc:6:66: instantiated from here /usr/lib/gcc-snapshot/lib/gcc/x86_64-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:5503 Please submit a full bug report, with preprocessed source if appropriate. See for instructions. Thanks, -miles