From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 133933877021; Tue, 9 Mar 2021 08:18:13 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 133933877021 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: Tue, 09 Mar 2021 08:18:12 +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: Tue, 09 Mar 2021 08:18:13 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D99425 --- Comment #1 from Alexander Lelyakin --- There is a shorter sequence: 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 g++ -std=3Dc++20 -fmodules-ts -x c++-system-header utility g++ -std=3Dc++20 -fmodules-ts -x c++-system-header ctime g++ -std=3Dc++20 -fmodules-ts -x c++-system-header forward_list g++ -std=3Dc++20 -fmodules-ts -x c++-system-header deque g++ -std=3Dc++20 -fmodules-ts -x c++-system-header variant g++ -std=3Dc++20 -fmodules-ts -x c++-system-header functional g++ -std=3Dc++20 -fmodules-ts -x c++-system-header future ---- In file included from /usr/local/include/c++/11.0.1/bits/shared_ptr_base.h:= 53, from /usr/local/include/c++/11.0.1/bits/shared_ptr.h:53, from /usr/local/include/c++/11.0.1/condition_variable:43, from /usr/local/include/c++/11.0.1/future:39: /usr/local/include/c++/11.0.1/bits/allocated_ptr.h:58:65: internal compiler error: tree check: expected tree_vec, have tree_list in lookup_template_class_1, at cp/pt.c:9803 58 | typename _Req =3D _Require>> | ^ 0x875ba8 tree_check_failed(tree_node const*, char const*, int, char const*, ...) ../../gcc/gcc/tree.c:9814 0x71d266 tree_check(tree_node*, char const*, int, char const*, tree_code) ../../gcc/gcc/tree.h:3353 0x71d266 lookup_template_class_1 ../../gcc/gcc/cp/pt.c:9803 0xb21d6c lookup_template_class(tree_node*, tree_node*, tree_node*, tree_nod= e*, int, int) ../../gcc/gcc/cp/pt.c:10237 0xb49ffb finish_template_type(tree_node*, tree_node*, int) ../../gcc/gcc/cp/semantics.c:3498 0xabbf41 cp_parser_template_id ../../gcc/gcc/cp/parser.c:17444 0xabc12b cp_parser_class_name ../../gcc/gcc/cp/parser.c:24671 0xab36ba cp_parser_qualifying_entity ../../gcc/gcc/cp/parser.c:6994 0xab36ba cp_parser_nested_name_specifier_opt ../../gcc/gcc/cp/parser.c:6676 0xac8e14 cp_parser_simple_type_specifier ../../gcc/gcc/cp/parser.c:18837 0xaa7bad cp_parser_type_specifier ../../gcc/gcc/cp/parser.c:18495 0xab9973 cp_parser_type_specifier_seq ../../gcc/gcc/cp/parser.c:23346 0xab7ff4 cp_parser_type_id_1 ../../gcc/gcc/cp/parser.c:23149 0xaba5d3 cp_parser_template_type_arg ../../gcc/gcc/cp/parser.c:23254 0xaba6ff cp_parser_template_argument ../../gcc/gcc/cp/parser.c:17894 0xaba6ff cp_parser_template_argument_list ../../gcc/gcc/cp/parser.c:17805 0xaba6ff cp_parser_enclosed_template_argument_list ../../gcc/gcc/cp/parser.c:30775 0xabba2c cp_parser_template_id ../../gcc/gcc/cp/parser.c:17377 0xabc12b cp_parser_class_name ../../gcc/gcc/cp/parser.c:24671 0xab36ba cp_parser_qualifying_entity ../../gcc/gcc/cp/parser.c:6994 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 20210308 (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.=