From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 830223858002; Wed, 24 Mar 2021 06:41:35 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 830223858002 From: "alexander.lelyakin at googlemail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/99283] [modules] ICE in assert_definition, at cp/module.cc:4608 Date: Wed, 24 Mar 2021 06:41:35 +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: WAITING 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 06:41:35 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D99283 --- Comment #8 from Alexander Lelyakin --- Still reproducible: ---- /usr/local/bin/g++ -std=3Dc++20 -fmodules-ts -x c++-system-header charconv /usr/local/bin/g++ -std=3Dc++20 -fmodules-ts -x c++-system-header fstream /usr/local/bin/g++ -std=3Dc++20 -fmodules-ts -x c++-system-header mutex /usr/local/bin/g++ -std=3Dc++20 -fmodules-ts -x c++-system-header cfloat /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 ios /usr/local/bin/g++ -std=3Dc++20 -fmodules-ts -x c++-system-header filesystem ---- In file included from /usr/local/include/c++/11.0.1/bits/unique_ptr.h:42, from /usr/local/include/c++/11.0.1/bits/locale_conv.h:41, from /usr/local/include/c++/11.0.1/locale:43, from /usr/local/include/c++/11.0.1/bits/fs_path.h:37, from /usr/local/include/c++/11.0.1/filesystem:45: /usr/local/include/c++/11.0.1/ostream:58:42: internal compiler error: in assert_definition, at cp/module.cc:4484 58 | class basic_ostream : virtual public basic_ios<_CharT, _Traits> | ^~~~~~~~~ 0x6e204d trees_in::assert_definition(tree_node*, bool) ../../gcc/gcc/cp/module.cc:4484 0xa5d810 trees_in::odr_duplicate(tree_node*, bool) ../../gcc/gcc/cp/module.cc:11362 0xa6d773 trees_in::read_class_def(tree_node*, tree_node*) ../../gcc/gcc/cp/module.cc:11842 0xa6f4a1 module_state::read_cluster(unsigned int) ../../gcc/gcc/cp/module.cc:14855 0xa6fb1d module_state::load_section(unsigned int, binding_slot*) ../../gcc/gcc/cp/module.cc:18117 0xa6fcd8 lazy_load_binding(unsigned int, tree_node*, tree_node*, binding_sl= ot*) ../../gcc/gcc/cp/module.cc:18811 0xa81ace name_lookup::search_namespace_only(tree_node*) ../../gcc/gcc/cp/name-lookup.c:928 0xa830fb name_lookup::search_unqualified(tree_node*, cp_binding_level*) ../../gcc/gcc/cp/name-lookup.c:1158 0xa84cf4 lookup_name_1 ../../gcc/gcc/cp/name-lookup.c:7802 0xa84eba lookup_name(tree_node*, LOOK_where, LOOK_want) ../../gcc/gcc/cp/name-lookup.c:7822 0xa94c62 lookup_name(tree_node*, LOOK_want) ../../gcc/gcc/cp/name-lookup.h:401 0xa94c62 cp_parser_lookup_name ../../gcc/gcc/cp/parser.c:29368 0xabd58f cp_parser_template_name ../../gcc/gcc/cp/parser.c:17708 0xabdacf cp_parser_template_id ../../gcc/gcc/cp/parser.c:17317 0xabe32b cp_parser_class_name ../../gcc/gcc/cp/parser.c:24685 0xab589a cp_parser_qualifying_entity ../../gcc/gcc/cp/parser.c:7002 0xab589a cp_parser_nested_name_specifier_opt ../../gcc/gcc/cp/parser.c:6684 0xaa96ac cp_parser_base_specifier ../../gcc/gcc/cp/parser.c:26704 0xaa96ac cp_parser_base_clause ../../gcc/gcc/cp/parser.c:26557 0xaa96ac cp_parser_class_head ../../gcc/gcc/cp/parser.c:25644 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 20210323 (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. gcc at commit be70bb5e4babdf9d3d33e8f4658452038407fa8e=