https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98790

--- Comment #10 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-10 branch has been updated by Marek Polacek
<mpola...@gcc.gnu.org>:

https://gcc.gnu.org/g:c806314b32987096d79de21e72dc0cf783e51d57

commit r10-9288-gc806314b32987096d79de21e72dc0cf783e51d57
Author: Marek Polacek <pola...@redhat.com>
Date:   Fri Jan 22 12:50:53 2021 -0500

    c++: Crash when deducing template arguments [PR98790]

    maybe_instantiate_noexcept doesn't expect to see error_mark_node, but
    the new callsite I introduced in r11-6476 can pass error_mark_node to
    it.  So cope.

    gcc/cp/ChangeLog:

            PR c++/98790
            * pt.c (maybe_instantiate_noexcept): Return false if FN is
            error_mark_node.

    gcc/testsuite/ChangeLog:

            PR c++/98790
            * g++.dg/template/deduce8.C: New test.

Reply via email to