https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99479
--- Comment #3 from Alexander Lelyakin <alexander.lelyakin at googlemail dot com> --- in gcc version 20210323: All three sequences now produce "Segmentation fault" instead of "corrupted double-linked list". However the error "corrupted double-linked list" is still reproducible: ---- /usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header cstdarg /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 locale /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 compare /usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header concepts /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 numeric /usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header string_view /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 variant /usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header iosfwd /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 filesystem ---- corrupted double-linked list corrupted double-linked list g++: internal compiler error: Aborted signal terminated program cc1plus Please submit a full bug report, with preprocessed source if appropriate. See <https://gcc.gnu.org/bugs/> for instructions. ---- g++ (GCC) 11.0.1 20210323 (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.