PR c++/88825 - ICE with bogus function return type deduction.
authorMarek Polacek <polacek@redhat.com>
Mon, 14 Jan 2019 22:01:24 +0000 (22:01 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Mon, 14 Jan 2019 22:01:24 +0000 (22:01 +0000)
commitf80aa3999d14e23d8e9cd81719b476c2e64116a0
treea713cec67782324f52dc0e6054470f3f054d9640
parenta30d0196379064ed2b24c6d405ffeb6b72b9a281
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.

From-SVN: r267926
gcc/cp/ChangeLog
gcc/cp/typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp1y/auto-fn55.C [new file with mode: 0644]