https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99855
Bug ID: 99855 Summary: [modules] ICE Error reporting routines re-entered. 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: --- /usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header algorithm /usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header memory /usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header thread /usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header condition_variable /usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header istream /usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header variant /usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header functional /usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header cassert /usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header cinttypes /usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header shared_mutex /usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header locale /usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header fstream /usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header cwctype /usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header exception /usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header cstdlib /usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header string /usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header vector /usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header cstdio /usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header filesystem ---- 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/bits/fs_path.h:46, from /usr/local/include/c++/11.0.1/filesystem:45: Internal compiler error: Error reporting routines re-entered. 0x877d94 tree_check_failed(tree_node const*, char const*, int, char const*, ...) ../../gcc/gcc/tree.c:9816 0x6c7098 tree_check(tree_node*, char const*, int, char const*, tree_code) ../../gcc/gcc/tree.h:3353 0x6c7098 dump_decl ../../gcc/gcc/cp/error.c:1259 0xa06c40 dump_scope ../../gcc/gcc/cp/error.c:234 0x9ff580 dump_aggr_type ../../gcc/gcc/cp/error.c:770 0xa00d85 dump_function_decl ../../gcc/gcc/cp/error.c:1715 0xa086d2 decl_as_string(tree_node*, int) ../../gcc/gcc/cp/error.c:3079 0xa086d2 lang_decl_name(tree_node*, int, bool) ../../gcc/gcc/cp/error.c:3114 0xb66217 cxx_printable_name_internal ../../gcc/gcc/cp/tree.c:2632 0xa09ddc cp_print_error_function ../../gcc/gcc/cp/error.c:3472 0xa09ddc cp_diagnostic_starter ../../gcc/gcc/cp/error.c:3426 0x1cb8972 diagnostic_report_diagnostic(diagnostic_context*, diagnostic_info*) ../../gcc/gcc/diagnostic.c:1245 0x1cb8ede diagnostic_impl ../../gcc/gcc/diagnostic.c:1406 0x1cb9227 internal_error(char const*, ...) ../../gcc/gcc/diagnostic.c:1808 0x877d94 tree_check_failed(tree_node const*, char const*, int, char const*, ...) ../../gcc/gcc/tree.c:9816 0x6c7098 tree_check(tree_node*, char const*, int, char const*, tree_code) ../../gcc/gcc/tree.h:3353 0x6c7098 dump_decl ../../gcc/gcc/cp/error.c:1259 0xa06c40 dump_scope ../../gcc/gcc/cp/error.c:234 0x9ff580 dump_aggr_type ../../gcc/gcc/cp/error.c:770 0xa00d85 dump_function_decl ../../gcc/gcc/cp/error.c:1715 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 20210331 (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.