http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58500
Bug ID: 58500 Summary: Crash with auto as function parameter Product: gcc Version: 4.9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: reichelt at gcc dot gnu.org The following (valid) testcase crashes when compiled with "-std=gnu++1y": ============================= struct A {}; void foo(auto (A::*)()); ============================= bug.cc:3:22: internal compiler error: in add_implicit_template_parms, at cp/parser.c:29007 void foo(auto (A::*)()); ^ 0x647b5a add_implicit_template_parms ../../gcc/gcc/cp/parser.c:29007 0x647b5a cp_parser_parameter_declaration_list ../../gcc/gcc/cp/parser.c:18052 0x647d56 cp_parser_parameter_declaration_clause ../../gcc/gcc/cp/parser.c:17867 0x6428d4 cp_parser_direct_declarator ../../gcc/gcc/cp/parser.c:16819 0x6428d4 cp_parser_declarator ../../gcc/gcc/cp/parser.c:16690 0x649699 cp_parser_init_declarator ../../gcc/gcc/cp/parser.c:16258 0x64a34f cp_parser_simple_declaration ../../gcc/gcc/cp/parser.c:10986 0x64c1b0 cp_parser_block_declaration ../../gcc/gcc/cp/parser.c:10867 0x6551ce cp_parser_declaration ../../gcc/gcc/cp/parser.c:10764 0x653f2d cp_parser_declaration_seq_opt ../../gcc/gcc/cp/parser.c:10650 0x655806 cp_parser_translation_unit ../../gcc/gcc/cp/parser.c:3939 0x655806 c_parse_file() ../../gcc/gcc/cp/parser.c:28893 0x768184 c_common_parse_file() ../../gcc/gcc/c-family/c-opts.c:1046 Please submit a full bug report, [etc.]