https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88825
--- Comment #3 from Marek Polacek <mpolacek at gcc dot gnu.org> --- Author: mpolacek Date: Mon Jan 14 22:01:24 2019 New Revision: 267926 URL: https://gcc.gnu.org/viewcvs?rev=267926&root=gcc&view=rev Log: PR c++/88825 - ICE with bogus function return type deduction. * typeck.c (can_do_nrvo_p): Check error_mark_node. * g++.dg/cpp1y/auto-fn55.C: New test. Added: trunk/gcc/testsuite/g++.dg/cpp1y/auto-fn55.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/typeck.c trunk/gcc/testsuite/ChangeLog