https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89390
Bug ID: 89390 Summary: [9 Regression] ICE in get_string, at spellcheck-tree.h:46 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: --- Changed between 20181125 and 20181202 : $ cat z1.cc enum class a { }; void f () { a::~a() } $ g++-9-20181125 -c z1.cc In function 'void f()': cc1plus: error: '~a' is not a member of 'a' $ g++-9-20190217 -c z1.cc z1.cc: In function 'void f()': z1.cc:4:7: internal compiler error: in get_string, at spellcheck-tree.h:46 4 | a::~a() | ^ 0x69446a edit_distance_traits<tree_node*>::get_string(tree_node*) ../../gcc/spellcheck-tree.h:46 0x69446a best_match<tree_node*, char const*>::best_match(tree_node*, unsigned int) ../../gcc/spellcheck.h:95 0x69446a suggest_alternative_in_scoped_enum(tree_node*, tree_node*) ../../gcc/cp/name-lookup.c:5945 0x662bac qualified_name_lookup_error(tree_node*, tree_node*, tree_node*, unsigned int) ../../gcc/cp/error.c:4280 0x71e2ab finish_id_expression_1 ../../gcc/cp/semantics.c:3609 0x71e2ab finish_id_expression(tree_node*, tree_node*, tree_node*, cp_id_kind*, bool, bool, bool*, bool, bool, bool, bool, char const**, unsigned int) ../../gcc/cp/semantics.c:3906 0x6bae49 cp_parser_primary_expression ../../gcc/cp/parser.c:5712 0x6bfcf1 cp_parser_postfix_expression ../../gcc/cp/parser.c:7162 0x6cc015 cp_parser_unary_expression ../../gcc/cp/parser.c:8459 0x6a9fef cp_parser_cast_expression ../../gcc/cp/parser.c:9345 0x6aa7c2 cp_parser_binary_expression ../../gcc/cp/parser.c:9446 0x6ab559 cp_parser_assignment_expression ../../gcc/cp/parser.c:9742 0x6ab7e2 cp_parser_expression ../../gcc/cp/parser.c:9911 0x6ae544 cp_parser_expression_statement ../../gcc/cp/parser.c:11449 0x6b9669 cp_parser_statement ../../gcc/cp/parser.c:11245 0x6ba490 cp_parser_statement_seq_opt ../../gcc/cp/parser.c:11592 0x6ba53f cp_parser_compound_statement ../../gcc/cp/parser.c:11546 0x6d0d00 cp_parser_function_body ../../gcc/cp/parser.c:22562 0x6d0d00 cp_parser_ctor_initializer_opt_and_function_body ../../gcc/cp/parser.c:22599 0x6d0fe0 cp_parser_function_definition_after_declarator ../../gcc/cp/parser.c:27666