https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77790
Marek Polacek <mpolacek at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mpolacek at gcc dot gnu.org --- Comment #3 from Marek Polacek <mpolacek at gcc dot gnu.org> --- The ICE with -std=c++11 is now a bit different: $ ./cc1plus -quiet e.cc -std=c++11 e.cc:4:44: error: ‘f’ function uses ‘auto’ type specifier without trailing return type template < typename T > static auto f () { return 0; } ^ e.cc:4:44: note: deduced return type only available with -std=c++14 or -std=gnu++14 e.cc: In substitution of ‘template<class U> int A<int>::g<U>() [with U = <missing>]’: e.cc:8:26: required from here e.cc:8:26: internal compiler error: Segmentation fault auto a = A < int > {}.g (); ^ 0xfcdf4e crash_signal /home/marek/src/gcc/gcc/toplev.c:333 0x7867a5 check_instantiated_arg /home/marek/src/gcc/gcc/cp/pt.c:17837 0x786d01 check_instantiated_args /home/marek/src/gcc/gcc/cp/pt.c:17909 0x7c5326 instantiate_template_1 /home/marek/src/gcc/gcc/cp/pt.c:18009 0x7c5326 instantiate_template(tree_node*, tree_node*, int) /home/marek/src/gcc/gcc/cp/pt.c:18113 0x7caf35 fn_type_unification(tree_node*, tree_node*, tree_node*, tree_node* const*, unsigned int, tree_node*, unification_kind_t, int, bool, bool) /home/marek/src/gcc/gcc/cp/pt.c:18493 0x72caff add_template_candidate_real /home/marek/src/gcc/gcc/cp/call.c:3164 0x72d87c add_template_candidate /home/marek/src/gcc/gcc/cp/call.c:3246 0x72d87c add_candidates /home/marek/src/gcc/gcc/cp/call.c:5481 0x72e25f build_new_method_call_1 /home/marek/src/gcc/gcc/cp/call.c:8656 0x72e25f build_new_method_call(tree_node*, tree_node*, vec<tree_node*, va_gc, vl_embed>**, tree_node*, int, tree_node**, int) /home/marek/src/gcc/gcc/cp/call.c:8856 0x84c01b cp_parser_postfix_expression /home/marek/src/gcc/gcc/cp/parser.c:6989 0x849954 cp_parser_unary_expression /home/marek/src/gcc/gcc/cp/parser.c:8100 0x853e87 cp_parser_cast_expression /home/marek/src/gcc/gcc/cp/parser.c:8777 0x85441d cp_parser_binary_expression /home/marek/src/gcc/gcc/cp/parser.c:8878 0x854ce0 cp_parser_assignment_expression /home/marek/src/gcc/gcc/cp/parser.c:9165 0x8550f7 cp_parser_constant_expression /home/marek/src/gcc/gcc/cp/parser.c:9435 0x8558e4 cp_parser_initializer_clause /home/marek/src/gcc/gcc/cp/parser.c:21543 0x8572d3 cp_parser_initializer /home/marek/src/gcc/gcc/cp/parser.c:21483 0x866996 cp_parser_init_declarator /home/marek/src/gcc/gcc/cp/parser.c:19329 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <http://gcc.gnu.org/bugs.html> for instructions.