From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 654D73851C24; Wed, 24 Mar 2021 19:40:57 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 654D73851C24 From: "alexander.lelyakin at googlemail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/99241] [modules] ICE in install_entity, at cp/module.cc:7584 Date: Wed, 24 Mar 2021 19:40:57 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: alexander.lelyakin at googlemail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: nathan at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Mar 2021 19:40:57 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D99241 --- Comment #2 from Alexander Lelyakin --- There is a shorter sequence: ---- /usr/local/bin/g++ -std=3Dc++20 -fmodules-ts -x c++-system-header stdexcept /usr/local/bin/g++ -std=3Dc++20 -fmodules-ts -x c++-system-header string /usr/local/bin/g++ -std=3Dc++20 -fmodules-ts -x c++-system-header condition_variable ---- In file included from /usr/local/include/c++/11.0.1/bits/ios_base.h:41, from /usr/local/include/c++/11.0.1/ios:42, from /usr/local/include/c++/11.0.1/ostream:38, from /usr/local/include/c++/11.0.1/bits/unique_ptr.h:42, from /usr/local/include/c++/11.0.1/bits/shared_ptr_base.h:= 59, from /usr/local/include/c++/11.0.1/bits/shared_ptr.h:53, from /usr/local/include/c++/11.0.1/condition_variable:43: /usr/local/include/c++/11.0.1/bits/locale_classes.h:163:23: internal compil= er error: in install_entity, at cp/module.cc:7457 163 | locale(const std::string& __s) : locale(__s.c_str()) { } | ^~~~~~ 0xa68138 trees_in::install_entity(tree_node*) ../../gcc/gcc/cp/module.cc:7457 0xa7063b trees_in::decl_value() ../../gcc/gcc/cp/module.cc:8009 0xa69017 trees_in::tree_node(bool) ../../gcc/gcc/cp/module.cc:9189 0xa6f61b module_state::read_cluster(unsigned int) ../../gcc/gcc/cp/module.cc:14846 0xa6fb1d module_state::load_section(unsigned int, binding_slot*) ../../gcc/gcc/cp/module.cc:18117 0xa6fbdf module_state::lazy_load(unsigned int, binding_slot*) ../../gcc/gcc/cp/module.cc:18778 0xa69e80 trees_in::tree_node(bool) ../../gcc/gcc/cp/module.cc:9700 0xa6b4d2 trees_in::lang_decl_vals(tree_node*) ../../gcc/gcc/cp/module.cc:6860 0xa703ea trees_in::tree_node_vals(tree_node*) ../../gcc/gcc/cp/module.cc:7053 0xa703ea trees_in::decl_value() ../../gcc/gcc/cp/module.cc:7962 0xa69017 trees_in::tree_node(bool) ../../gcc/gcc/cp/module.cc:9189 0xa6a1cc trees_in::chained_decls() ../../gcc/gcc/cp/module.cc:4832 0xa6af79 trees_in::core_vals(tree_node*) ../../gcc/gcc/cp/module.cc:6534 0xa686e7 trees_in::tree_node_vals(tree_node*) ../../gcc/gcc/cp/module.cc:7051 0xa686e7 trees_in::tree_value() ../../gcc/gcc/cp/module.cc:8966 0xa68b1f trees_in::tree_node(bool) ../../gcc/gcc/cp/module.cc:9184 0xa6af87 trees_in::core_vals(tree_node*) ../../gcc/gcc/cp/module.cc:6536 0xa686e7 trees_in::tree_node_vals(tree_node*) ../../gcc/gcc/cp/module.cc:7051 0xa686e7 trees_in::tree_value() ../../gcc/gcc/cp/module.cc:8966 0xa68b1f trees_in::tree_node(bool) ../../gcc/gcc/cp/module.cc:9184 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions. ---- g++ (GCC) 11.0.1 20210324 (experimental) Copyright (C) 2021 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.=