[Bug c++/88825] [7/8/9 Regression] ICE on (invalid) C++11 code: tree check: expected class ‘type’, have ‘exceptional’ (error_mark) in can_do_nrvo_p, at cp/typeck.c:9361

mpolacek at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Jan 14 22:02:00 GMT 2019


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


More information about the Gcc-bugs mailing list