https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99283
--- Comment #12 from Alexander Lelyakin <alexander.lelyakin at googlemail dot com> --- Still reproduces: ---- /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 string_view /usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header mutex /usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header future ---- 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/condition_variable:43, from /usr/local/include/c++/11.0.1/future:39: /usr/local/include/c++/11.0.1/bits/allocated_ptr.h:48:32: internal compiler error: in assert_definition, at cp/module.cc:4491 48 | using pointer = typename allocator_traits<_Alloc>::pointer; | ^~~~~~~~~~~~~~~~ 0x6e20cf trees_in::assert_definition(tree_node*, bool) ../../gcc/gcc/cp/module.cc:4491 0xa5db10 trees_in::odr_duplicate(tree_node*, bool) ../../gcc/gcc/cp/module.cc:11321 0xa6d607 trees_in::read_var_def(tree_node*, tree_node*) ../../gcc/gcc/cp/module.cc:11509 0xa6f611 module_state::read_cluster(unsigned int) ../../gcc/gcc/cp/module.cc:14800 0xa6fc8d module_state::load_section(unsigned int, binding_slot*) ../../gcc/gcc/cp/module.cc:18062 0xa6fd4f module_state::lazy_load(unsigned int, binding_slot*) ../../gcc/gcc/cp/module.cc:18720 0xa6a000 trees_in::tree_node(bool) ../../gcc/gcc/cp/module.cc:9662 0xa6aaa1 trees_in::core_vals(tree_node*) ../../gcc/gcc/cp/module.cc:6414 0xa68867 trees_in::tree_node_vals(tree_node*) ../../gcc/gcc/cp/module.cc:7058 0xa68867 trees_in::tree_value() ../../gcc/gcc/cp/module.cc:8928 0xa68c9f trees_in::tree_node(bool) ../../gcc/gcc/cp/module.cc:9146 0xa6aaa1 trees_in::core_vals(tree_node*) ../../gcc/gcc/cp/module.cc:6414 0xa68867 trees_in::tree_node_vals(tree_node*) ../../gcc/gcc/cp/module.cc:7058 0xa68867 trees_in::tree_value() ../../gcc/gcc/cp/module.cc:8928 0xa68c9f trees_in::tree_node(bool) ../../gcc/gcc/cp/module.cc:9146 0xa6b1f2 trees_in::core_vals(tree_node*) ../../gcc/gcc/cp/module.cc:6622 0xa68867 trees_in::tree_node_vals(tree_node*) ../../gcc/gcc/cp/module.cc:7058 0xa68867 trees_in::tree_value() ../../gcc/gcc/cp/module.cc:8928 0xa68c9f trees_in::tree_node(bool) ../../gcc/gcc/cp/module.cc:9146 0xa6b200 trees_in::core_vals(tree_node*) ../../gcc/gcc/cp/module.cc:6623 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 20210326 (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. commit 42a21b4cb540be93548a6ff6d4cb4a73ab1665be