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

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

g++ -std=c++20 -fmodules-ts -x c++-system-header streambuf
g++ -std=c++20 -fmodules-ts -x c++-system-header complex
----
In file included from /usr/local/include/c++/11.0.1/bits/locale_facets.h:2682,
                 from /usr/local/include/c++/11.0.1/bits/basic_ios.h:37,
                 from /usr/local/include/c++/11.0.1/ios:44,
                 from /usr/local/include/c++/11.0.1/istream:38,
                 from /usr/local/include/c++/11.0.1/sstream:38,
                 from /usr/local/include/c++/11.0.1/complex:45:
/usr/local/include/c++/11.0.1/bits/locale_facets.tcc:42:12: internal compiler
error: tree check: expected binding_vector, have overload in
lookup_elaborated_type_1, at cp/name-lookup.c:8013
   42 |     struct __use_cache
      |            ^~~~~~~~~~~
0x875454 tree_check_failed(tree_node const*, char const*, int, char const*,
...)
        ../../gcc/gcc/tree.c:9814
0x6eb4e2 tree_check(tree_node*, char const*, int, char const*, tree_code)
        ../../gcc/gcc/tree.h:3349
0x6eb4e2 lookup_elaborated_type_1
        ../../gcc/gcc/cp/name-lookup.c:8013
0x6eb4e2 lookup_elaborated_type(tree_node*, TAG_how)
        ../../gcc/gcc/cp/name-lookup.c:8104
0x9c37f5 lookup_and_check_tag
        ../../gcc/gcc/cp/decl.c:15073
0x9c3bb1 xref_tag_1
        ../../gcc/gcc/cp/decl.c:15187
0x9c4100 xref_tag(tag_types, tree_node*, TAG_how, bool)
        ../../gcc/gcc/cp/decl.c:15320
0xaa4ff2 cp_parser_class_head
        ../../gcc/gcc/cp/parser.c:25576
0xaa4ff2 cp_parser_class_specifier_1
        ../../gcc/gcc/cp/parser.c:24793
0xaa5963 cp_parser_class_specifier
        ../../gcc/gcc/cp/parser.c:25172
0xaa5963 cp_parser_type_specifier
        ../../gcc/gcc/cp/parser.c:18419
0xaa68f9 cp_parser_decl_specifier_seq
        ../../gcc/gcc/cp/parser.c:15041
0xad1436 cp_parser_single_declaration
        ../../gcc/gcc/cp/parser.c:30390
0xad17b6 cp_parser_template_declaration_after_parameters
        ../../gcc/gcc/cp/parser.c:30053
0xad1f60 cp_parser_explicit_template_declaration
        ../../gcc/gcc/cp/parser.c:30319
0xad46b9 cp_parser_declaration
        ../../gcc/gcc/cp/parser.c:14047
0xad3c59 cp_parser_toplevel_declaration
        ../../gcc/gcc/cp/parser.c:14145
0xad3c59 cp_parser_declaration_seq_opt
        ../../gcc/gcc/cp/parser.c:13933
0xad40f2 cp_parser_namespace_body
        ../../gcc/gcc/cp/parser.c:20433
0xad40f2 cp_parser_namespace_definition
        ../../gcc/gcc/cp/parser.c:20411
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 20210228 (experimental)

Reply via email to