https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99737
--- Comment #1 from Alexander Lelyakin <alexander.lelyakin at googlemail dot com> --- Similar, but somewhat different message: /usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header cwchar /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 type_traits /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 future ---- corrupted double-linked list In file included from /usr/local/include/c++/11.0.1/future:43: /usr/local/include/c++/11.0.1/bits/atomic_futex.h:171:36: internal compiler error: Aborted 171 | bool __equal, memory_order __mo, | ^~~~ 0x110151f crash_signal ../../gcc/gcc/toplev.c:327 0x1d474c4 xcalloc ../../gcc/libiberty/xmalloc.c:162 0xc2d30c alloc_page ../../gcc/gcc/ggc-page.c:918 0xc2d30c ggc_internal_alloc(unsigned long, void (*)(void*), unsigned long, unsigned long) ../../gcc/gcc/ggc-page.c:1294 0xe16c69 ggc_internal_cleared_alloc(unsigned long, void (*)(void*), unsigned long, unsigned long) ../../gcc/gcc/ggc-common.c:117 0xa25f78 ggc_internal_cleared_alloc(unsigned long) ../../gcc/gcc/ggc.h:143 0xa25f78 maybe_add_lang_decl_raw(tree_node*, bool) ../../gcc/gcc/cp/lex.c:903 0xa2626e retrofit_lang_decl(tree_node*) ../../gcc/gcc/cp/lex.c:972 0xa2626e retrofit_lang_decl(tree_node*) ../../gcc/gcc/cp/lex.c:967 0xac6725 cp_parser_parameter_declaration_list ../../gcc/gcc/cp/parser.c:23607 0xac6ab1 cp_parser_parameter_declaration_clause ../../gcc/gcc/cp/parser.c:23496 0xab7be3 cp_parser_direct_declarator ../../gcc/gcc/cp/parser.c:22145 0xab7be3 cp_parser_declarator ../../gcc/gcc/cp/parser.c:22008 0xacee48 cp_parser_init_declarator ../../gcc/gcc/cp/parser.c:21506 0xad5c7b cp_parser_single_declaration ../../gcc/gcc/cp/parser.c:30517 0xad5de6 cp_parser_template_declaration_after_parameters ../../gcc/gcc/cp/parser.c:30089 0xad6590 cp_parser_explicit_template_declaration ../../gcc/gcc/cp/parser.c:30355 0xaa7998 cp_parser_member_specification_opt ../../gcc/gcc/cp/parser.c:25799 0xaa7998 cp_parser_class_specifier_1 ../../gcc/gcc/cp/parser.c:24877 0xaa9ec3 cp_parser_class_specifier ../../gcc/gcc/cp/parser.c:25193 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 20210327 (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.