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

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

https://gcc.gnu.org/g:2b27f37f90cb66e277b734c605639e2f00a2e942

commit r11-6804-g2b27f37f90cb66e277b734c605639e2f00a2e942
Author: Marek Polacek <pola...@redhat.com>
Date:   Wed Jan 13 13:12:14 2021 -0500

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

    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++/98659
            * pt.c (maybe_instantiate_noexcept): Return false if FN is
            error_mark_node.

    gcc/testsuite/ChangeLog:

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

Reply via email to