https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98356
Bug ID: 98356 Summary: [9/10/11 Regression] ICE in cp_parser_dot_deref_incomplete, at cp/parser.c:7899 Product: gcc Version: 11.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 20190210 (error) and 20190217 (ICE) : (typo ; -> .) $ cat z1.cc template <template <typename> class T> struct S { using A = T<int>; using A::foo; void foo (); void bar () {foo.} }; $ g++-11-20201213 -c z1.cc z1.cc: In member function 'void S<T>::bar()': z1.cc:6:19: internal compiler error: Segmentation fault 6 | void bar () {foo.} | ^ 0xc8f5ff crash_signal ../../gcc/toplev.c:327 0x7d8279 cxx_incomplete_type_diagnostic(unsigned int, tree_node const*, tree_node const*, diagnostic_t) ../../gcc/cp/typeck2.c:373 0x72725e cp_parser_dot_deref_incomplete(tree_node**, cp_expr*, bool*) ../../gcc/cp/parser.c:7899 0x743cb5 cp_parser_postfix_dot_deref_expression ../../gcc/cp/parser.c:7973 0x7414d3 cp_parser_postfix_expression ../../gcc/cp/parser.c:7736 0x751a35 cp_parser_unary_expression ../../gcc/cp/parser.c:8808 0x72b84f cp_parser_cast_expression ../../gcc/cp/parser.c:9712 0x72c082 cp_parser_binary_expression ../../gcc/cp/parser.c:9814 0x72c7e0 cp_parser_assignment_expression ../../gcc/cp/parser.c:10118 0x72d65c cp_parser_expression ../../gcc/cp/parser.c:10288 0x7301e7 cp_parser_expression_statement ../../gcc/cp/parser.c:11955 0x73d44f cp_parser_statement ../../gcc/cp/parser.c:11751 0x73e344 cp_parser_statement_seq_opt ../../gcc/cp/parser.c:12102 0x73e3ff cp_parser_compound_statement ../../gcc/cp/parser.c:12052 0x758ff8 cp_parser_function_body ../../gcc/cp/parser.c:23975 0x758ff8 cp_parser_ctor_initializer_opt_and_function_body ../../gcc/cp/parser.c:24026 0x7594a6 cp_parser_function_definition_after_declarator ../../gcc/cp/parser.c:29916 0x759804 cp_parser_late_parsing_for_member ../../gcc/cp/parser.c:30827 0x73866a cp_parser_class_specifier_1 ../../gcc/cp/parser.c:25088 0x739639 cp_parser_class_specifier ../../gcc/cp/parser.c:25112