https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99481
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=c++20 -fmodules-ts -x c++-system-header functional g++ -std=c++20 -fmodules-ts -x c++-system-header streambuf g++ -std=c++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:17, 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 compiler error: tree check: expected template_decl, have function_decl in decl_value, at cp/module.cc:7938 55 | _Container>> = 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 <https://gcc.gnu.org/bugs/> 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.