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

--- Comment #5 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:c9b6890d0b6aa030b307fdb620f8c53ed59ca3b5

commit r12-389-gc9b6890d0b6aa030b307fdb620f8c53ed59ca3b5
Author: Marek Polacek <pola...@redhat.com>
Date:   Thu Apr 22 17:32:01 2021 -0400

    c++: Fix ICE with invalid requires-expression [PR100055]

    This fixes a crash on invalid requires-expression: in this test,
    current_template_parms is null so accessing TEMPLATE_PARMS_CONSTRAINTS
    is going to fail.  So don't crash, but make sure we've complained
    already.

    gcc/cp/ChangeLog:

            PR c++/100055
            * decl.c (grokfndecl): Check current_template_parms.

    gcc/testsuite/ChangeLog:

            PR c++/100055
            * g++.dg/concepts/diagnostic18.C: New test.

Reply via email to