https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64086
Bug ID: 64086 Summary: [5 Regression] building patched libstdc++ on powerpc64-linux-gnu gets ICE in expand_expr_addr_expr_1, at expr.c:7716 Product: gcc Version: 5.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: bootstrap Assignee: unassigned at gcc dot gnu.org Reporter: redi at gcc dot gnu.org CC: marxin at gcc dot gnu.org Created attachment 34126 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34126&action=edit preprocessed source reproducing the ICE On gcc112, while building the 32-bit libstdc++.so I get a similar ICE to PR 63573 g++5 -std=c++11 -m32 sstream-inst.ii -O2 -c -fno-implicit-templates In file included from /home/jwakely/src/gcc/libstdc++-v3/src/c++11/sstream-inst.cc:29:0: /home/jwakely/build-abi/powerpc64-unknown-linux-gnu/32/libstdc++-v3/include/sstream: In member function ‘std::basic_stringbuf<_CharT, _Traits, _Alloc>::__string_type std::basic_stringbuf<_CharT, _Traits, _Alloc>::str() const [with _CharT = wchar_t; _Traits = std::char_traits<wchar_t>; _Alloc = std::allocator<wchar_t>; std::basic_stringbuf<_CharT, _Traits, _Alloc>::__string_type = std::basic_string<wchar_t>]’: /home/jwakely/build-abi/powerpc64-unknown-linux-gnu/32/libstdc++-v3/include/sstream:166:7: internal compiler error: in expand_expr_addr_expr_1, at expr.c:7716 str() const ^ 0x10664f27 expand_expr_addr_expr_1 /home/jwakely/src/gcc/gcc/expr.c:7716 0x1065681f expand_expr_addr_expr /home/jwakely/src/gcc/gcc/expr.c:7830 0x1065681f expand_expr_real_1(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool) /home/jwakely/src/gcc/gcc/expr.c:10704 0x10506483 expand_normal /home/jwakely/src/gcc/gcc/expr.h:305 0x10506483 precompute_register_parameters /home/jwakely/src/gcc/gcc/calls.c:869 0x10506483 expand_call(tree_node*, rtx_def*, int) /home/jwakely/src/gcc/gcc/calls.c:3119 0x1065645b expand_expr_real_1(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool) /home/jwakely/src/gcc/gcc/expr.c:10472 0x1051c507 expand_expr /home/jwakely/src/gcc/gcc/expr.h:299 0x1051c507 expand_call_stmt /home/jwakely/src/gcc/gcc/cfgexpand.c:2347 0x1051c507 expand_gimple_stmt_1 /home/jwakely/src/gcc/gcc/cfgexpand.c:3293 0x1051c507 expand_gimple_stmt /home/jwakely/src/gcc/gcc/cfgexpand.c:3447 0x1052316b expand_gimple_basic_block /home/jwakely/src/gcc/gcc/cfgexpand.c:5280 0x10524e27 execute /home/jwakely/src/gcc/gcc/cfgexpand.c:5889 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <http://gcc.gnu.org/bugs.html> for instructions.