https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99879
Bug ID: 99879 Summary: [modules] ICE in open 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 memory /usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header climits /usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header cmath /usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header source_location /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 set /usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header bit /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 queue /usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header iomanip /usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header syncstream /usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header unordered_set /usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header forward_list /usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header semaphore /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 cstring /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 iostream /usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header future /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 typeinfo /usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header latch /usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header ratio /usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header cerrno /usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header ios /usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header csignal /usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header regex ---- In module imported at /usr/local/include/c++/11.0.1/regex:53: /usr/local/include/c++/11.0.1/cstring: note: unable to represent further imported source locations /usr/local/include/c++/11.0.1/regex:53: internal compiler error: in open, at cp/module.cc:13625 53 | #include <cstring> | 0x6de0f9 loc_spans::open(unsigned int) ../../gcc/gcc/cp/module.cc:13625 0xa61915 preprocess_module(module_state*, unsigned int, bool, bool, bool, cpp_reader*) ../../gcc/gcc/cp/module.cc:19417 0xa2b82f module_token_filter::resume(int, int, tree_node*, unsigned int) ../../gcc/gcc/cp/lex.c:520 0xa2b82f module_token_lang(int, int, tree_node*, unsigned int, unsigned long) ../../gcc/gcc/cp/lex.c:557 0xadf873 cp_lexer_new_main ../../gcc/gcc/cp/parser.c:660 0xadf873 c_parse_file() ../../gcc/gcc/cp/parser.c:45253 0xc0480d c_common_parse_file() ../../gcc/gcc/c-family/c-opts.c:1218 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 20210401 (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.