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: unassig...@gcc.gnu.org ReportedBy: zso...@seznam.cz CC: ja...@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 <map> #include <string> void foo() { const std::string s; std::map<std::string, std::string>::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<char>, _T2 = std::basic_string<char>]': 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 <http://gcc.gnu.org/bugs.html> 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 <http://gcc.gnu.org/bugs.html> for instructions. Tested revisions: r167556 - crash