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

            Bug ID: 89511
           Summary: ICE in push_using_decl_1, at cp/name-lookup.c:3845
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gs...@t-online.de
  Target Milestone: ---

Seems to be an older issue (with -std=c++17) :


$ cat z1.cc
void f ()
{
  enum e { a };
  using e::a;
}


$ g++-9-20190224 -c z1.cc
z1.cc: In function 'void f()':
z1.cc:4:12: internal compiler error: in push_using_decl_1, at
cp/name-lookup.c:3845
    4 |   using e::a;
      |            ^
0x6922f9 push_using_decl_1
        ../../gcc/cp/name-lookup.c:3845
0x6922f9 push_using_decl
        ../../gcc/cp/name-lookup.c:3866
0x6922f9 validate_nonmember_using_decl
        ../../gcc/cp/name-lookup.c:3967
0x699767 finish_local_using_decl(tree_node*, tree_node*, tree_node*)
        ../../gcc/cp/name-lookup.c:5166
0x6c9711 cp_parser_using_declaration
        ../../gcc/cp/parser.c:19495
0x6b8639 cp_parser_declaration_statement
        ../../gcc/cp/parser.c:12922
0x6b9097 cp_parser_statement
        ../../gcc/cp/parser.c:11246
0x6b9f20 cp_parser_statement_seq_opt
        ../../gcc/cp/parser.c:11608
0x6b9fcf cp_parser_compound_statement
        ../../gcc/cp/parser.c:11562
0x6d0830 cp_parser_function_body
        ../../gcc/cp/parser.c:22578
0x6d0830 cp_parser_ctor_initializer_opt_and_function_body
        ../../gcc/cp/parser.c:22615
0x6d0b10 cp_parser_function_definition_after_declarator
        ../../gcc/cp/parser.c:27682
0x6d17c3 cp_parser_function_definition_from_specifiers_and_declarator
        ../../gcc/cp/parser.c:27598
0x6d17c3 cp_parser_init_declarator
        ../../gcc/cp/parser.c:20221
0x6b6b0e cp_parser_simple_declaration
        ../../gcc/cp/parser.c:13492
0x6d6b34 cp_parser_declaration
        ../../gcc/cp/parser.c:13189
0x6d728e cp_parser_translation_unit
        ../../gcc/cp/parser.c:4698
0x6d728e c_parse_file()
        ../../gcc/cp/parser.c:41062
0x796060 c_common_parse_file()
        ../../gcc/c-family/c-opts.c:1155

Reply via email to