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

--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jason Merrill <ja...@gcc.gnu.org>:

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

commit r11-5873-gc3a63fb3854392af65a191154e3586e7f5a1066e
Author: Jason Merrill <ja...@redhat.com>
Date:   Tue Dec 8 21:47:11 2020 -0500

    c++: Avoid [[nodiscard]] warning in requires-expr [PR98019]

    If we aren't really evaluating the expression, it doesn't matter that the
    return value is discarded.

    gcc/cp/ChangeLog:

            PR c++/98019
            * cvt.c (maybe_warn_nodiscard): Check
c_inhibit_evaluation_warnings.

    gcc/testsuite/ChangeLog:

            * g++.dg/cpp2a/concepts-nodiscard1.C: Remove xfail.

Reply via email to