https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99283

--- Comment #13 from Alexander Lelyakin <alexander.lelyakin at googlemail dot 
com> ---
There is a shorter sequence:

/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 ios
/usr/local/bin/g++ -std=c++20 -fmodules-ts -x c++-system-header
condition_variable
----
In file included from /usr/local/include/c++/11.0.1/bits/unique_ptr.h:42,
                 from /usr/local/include/c++/11.0.1/bits/shared_ptr_base.h:59,
                 from /usr/local/include/c++/11.0.1/bits/shared_ptr.h:53,
                 from /usr/local/include/c++/11.0.1/condition_variable:43:
/usr/local/include/c++/11.0.1/ostream:58:42: internal compiler error: in
assert_definition, at cp/module.cc:4491
   58 |     class basic_ostream : virtual public basic_ios<_CharT, _Traits>
      |                                          ^~~~~~~~~
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
0xa6d14f trees_in::read_function_def(tree_node*, tree_node*)
        ../../gcc/gcc/cp/module.cc:11401
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
0xa6fe48 lazy_load_binding(unsigned int, tree_node*, tree_node*, binding_slot*)
        ../../gcc/gcc/cp/module.cc:18753
0xa81b8e name_lookup::search_namespace_only(tree_node*)
        ../../gcc/gcc/cp/name-lookup.c:928
0xa831bb name_lookup::search_unqualified(tree_node*, cp_binding_level*)
        ../../gcc/gcc/cp/name-lookup.c:1158
0xa85eb4 lookup_name_1
        ../../gcc/gcc/cp/name-lookup.c:7804
0xa8607a lookup_name(tree_node*, LOOK_where, LOOK_want)
        ../../gcc/gcc/cp/name-lookup.c:7824
0xa94d02 lookup_name(tree_node*, LOOK_want)
        ../../gcc/gcc/cp/name-lookup.h:401
0xa94d02 cp_parser_lookup_name
        ../../gcc/gcc/cp/parser.c:29375
0xabd64f cp_parser_template_name
        ../../gcc/gcc/cp/parser.c:17709
0xabdb8f cp_parser_template_id
        ../../gcc/gcc/cp/parser.c:17324
0xabe3eb cp_parser_class_name
        ../../gcc/gcc/cp/parser.c:24692
0xab595a cp_parser_qualifying_entity
        ../../gcc/gcc/cp/parser.c:7002
0xab595a cp_parser_nested_name_specifier_opt
        ../../gcc/gcc/cp/parser.c:6684
0xaa974c cp_parser_base_specifier
        ../../gcc/gcc/cp/parser.c:26711
0xaa974c cp_parser_base_clause
        ../../gcc/gcc/cp/parser.c:26564
0xaa974c cp_parser_class_head
        ../../gcc/gcc/cp/parser.c:25651
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.

Reply via email to