From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E21B93857C70; Fri, 12 Mar 2021 06:40:10 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E21B93857C70 From: "alexander.lelyakin at googlemail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/99425] [modules] ICE tree check: expected tree_vec, have tree_list in lookup_template_class_1, at cp/pt.c:9803 Date: Fri, 12 Mar 2021 06:40:10 +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: Fri, 12 Mar 2021 06:40:11 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D99425 --- Comment #2 from Alexander Lelyakin --- The same sequence now breaks earlier with different message: g++ -std=3Dc++20 -fmodules-ts -x c++-system-header map g++ -std=3Dc++20 -fmodules-ts -x c++-system-header vector g++ -std=3Dc++20 -fmodules-ts -x c++-system-header stdexcept g++ -std=3Dc++20 -fmodules-ts -x c++-system-header span g++ -std=3Dc++20 -fmodules-ts -x c++-system-header mutex ---- /usr/local/include/c++/11.0.1/mutex: internal compiler error: in key_mergea= ble, at cp/module.cc:10366 0x6e249f trees_out::key_mergeable(int, merge_kind, tree_node*, tree_node*, tree_node*, depset*) ../../gcc/gcc/cp/module.cc:10366 0xa5b3b5 trees_out::decl_value(tree_node*, depset*) ../../gcc/gcc/cp/module.cc:7625 0xa63251 depset::hash::find_dependencies(module_state*) ../../gcc/gcc/cp/module.cc:13139 0xa638e8 module_state::write(elf_out*, cpp_reader*) ../../gcc/gcc/cp/module.cc:17618 0xa64d7f finish_module_processing(cpp_reader*) ../../gcc/gcc/cp/module.cc:19858 0x9f835b c_parse_final_cleanups() ../../gcc/gcc/cp/decl2.c:5175 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. ---- g++ (GCC) 11.0.1 20210311 (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.=