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

--- Comment #2 from Alexander Lelyakin <alexander.lelyakin at googlemail dot 
com> ---
There is much shorter sequence in last version 20210310:

g++ -std=c++20 -fmodules-ts -x c++-system-header streambuf
g++ -std=c++20 -fmodules-ts -x c++-system-header istream
----
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:
/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:7943
   42 |     struct __use_cache
      |            ^~~~~~~~~~~
0x875bfa tree_check_failed(tree_node const*, char const*, int, char const*,
...)
        ../../gcc/gcc/tree.c:9816
0x6eb804 tree_check(tree_node*, char const*, int, char const*, tree_code)
        ../../gcc/gcc/tree.h:3353
0x6eb804 lookup_elaborated_type_1
        ../../gcc/gcc/cp/name-lookup.c:7943
0x6eb804 lookup_elaborated_type(tree_node*, TAG_how)
        ../../gcc/gcc/cp/name-lookup.c:8034
0x9c5385 lookup_and_check_tag
        ../../gcc/gcc/cp/decl.c:15080
0x9c5741 xref_tag_1
        ../../gcc/gcc/cp/decl.c:15194
0x9c5c90 xref_tag(tag_types, tree_node*, TAG_how, bool)
        ../../gcc/gcc/cp/decl.c:15327
0xaa75c2 cp_parser_class_head
        ../../gcc/gcc/cp/parser.c:25586
0xaa75c2 cp_parser_class_specifier_1
        ../../gcc/gcc/cp/parser.c:24803
0xaa7f23 cp_parser_class_specifier
        ../../gcc/gcc/cp/parser.c:25182
0xaa7f23 cp_parser_type_specifier
        ../../gcc/gcc/cp/parser.c:18429
0xaa8eb9 cp_parser_decl_specifier_seq
        ../../gcc/gcc/cp/parser.c:15051
0xad3a76 cp_parser_single_declaration
        ../../gcc/gcc/cp/parser.c:30412
0xad3df6 cp_parser_template_declaration_after_parameters
        ../../gcc/gcc/cp/parser.c:30075
0xad45a0 cp_parser_explicit_template_declaration
        ../../gcc/gcc/cp/parser.c:30341
0xad6cc9 cp_parser_declaration
        ../../gcc/gcc/cp/parser.c:14057
0xad6299 cp_parser_toplevel_declaration
        ../../gcc/gcc/cp/parser.c:14155
0xad6299 cp_parser_declaration_seq_opt
        ../../gcc/gcc/cp/parser.c:13943
0xad6732 cp_parser_namespace_body
        ../../gcc/gcc/cp/parser.c:20443
0xad6732 cp_parser_namespace_definition
        ../../gcc/gcc/cp/parser.c:20421
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 20210310 (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