From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 73F213846457; Tue, 9 Mar 2021 07:42:18 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 73F213846457 From: "alexander.lelyakin at googlemail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/99481] New: [modules] ICE tree check: expected template_decl, have function_decl in decl_value, at cp/module.cc:7938 Date: Tue, 09 Mar 2021 07:42:18 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new 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: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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 07:42:18 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D99481 Bug ID: 99481 Summary: [modules] ICE tree check: expected template_decl, have function_decl in decl_value, at cp/module.cc:7938 Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: alexander.lelyakin at googlemail dot com Target Milestone: --- g++ -std=3Dc++20 -fmodules-ts -x c++-system-header functional g++ -std=3Dc++20 -fmodules-ts -x c++-system-header streambuf g++ -std=3Dc++20 -fmodules-ts -x c++-system-header execution ---- In file included from /usr/local/include/c++/11.0.1/bits/ranges_algo.h:35, from /usr/local/include/c++/11.0.1/algorithm:64, from /usr/local/include/c++/11.0.1/pstl/algorithm_impl.h:1= 7, from /usr/local/include/c++/11.0.1/pstl/glue_execution_defs.h:50, from /usr/local/include/c++/11.0.1/execution:32: /usr/local/include/c++/11.0.1/bits/ranges_algobase.h:55:59: internal compil= er error: tree check: expected template_decl, have function_decl in decl_value= , at cp/module.cc:7938 55 | _Containe= r>> =3D true; | ^~~~~~~~~~ 0x875ba8 tree_check_failed(tree_node const*, char const*, int, char const*, ...) ../../gcc/gcc/tree.c:9814 0x6e61c9 tree_check(tree_node*, char const*, int, char const*, tree_code) ../../gcc/gcc/tree.h:3353 0x6e61c9 trees_in::decl_value() ../../gcc/gcc/cp/module.cc:7938 0xa66d17 trees_in::tree_node(bool) ../../gcc/gcc/cp/module.cc:9174 0xa6d36b module_state::read_cluster(unsigned int) ../../gcc/gcc/cp/module.cc:14858 0xa6d86d module_state::load_section(unsigned int, binding_slot*) ../../gcc/gcc/cp/module.cc:18125 0xa6d92f module_state::lazy_load(unsigned int, binding_slot*) ../../gcc/gcc/cp/module.cc:18779 0xa67b80 trees_in::tree_node(bool) ../../gcc/gcc/cp/module.cc:9685 0xa6de67 trees_in::decl_container() ../../gcc/gcc/cp/module.cc:10301 0xa6de67 trees_in::decl_value() ../../gcc/gcc/cp/module.cc:7903 0xa66d17 trees_in::tree_node(bool) ../../gcc/gcc/cp/module.cc:9174 0xa6d36b module_state::read_cluster(unsigned int) ../../gcc/gcc/cp/module.cc:14858 0xa6d86d module_state::load_section(unsigned int, binding_slot*) ../../gcc/gcc/cp/module.cc:18125 0xa6d92f module_state::lazy_load(unsigned int, binding_slot*) ../../gcc/gcc/cp/module.cc:18779 0xa67b80 trees_in::tree_node(bool) ../../gcc/gcc/cp/module.cc:9685 0xa66c89 trees_in::tree_node(bool) ../../gcc/gcc/cp/module.cc:9224 0xa675bd trees_in::tree_node(bool) ../../gcc/gcc/cp/module.cc:9367 0xa69095 trees_in::core_vals(tree_node*) ../../gcc/gcc/cp/module.cc:6630 0xa663e7 trees_in::tree_node_vals(tree_node*) ../../gcc/gcc/cp/module.cc:7060 0xa663e7 trees_in::tree_value() ../../gcc/gcc/cp/module.cc:8951 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.=