public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "cvs-commit at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/98019] Concepts: compound requirement expression from 'requires' expression is considered discarded-value expression for [[nodiscard]], false positive warning emitted Date: Wed, 09 Dec 2020 05:36:39 +0000 [thread overview] Message-ID: <bug-98019-4-jZmMCrLROz@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-98019-4@http.gcc.gnu.org/bugzilla/> 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 <jason@gcc.gnu.org>: https://gcc.gnu.org/g:c3a63fb3854392af65a191154e3586e7f5a1066e commit r11-5873-gc3a63fb3854392af65a191154e3586e7f5a1066e Author: Jason Merrill <jason@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.
next prev parent reply other threads:[~2020-12-09 5:36 UTC|newest] Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-11-26 17:09 [Bug d/98019] New: " egor_suvorov at mail dot ru 2020-11-26 17:17 ` [Bug c++/98019] " egor_suvorov at mail dot ru 2020-12-03 18:57 ` cvs-commit at gcc dot gnu.org 2020-12-03 18:57 ` jason at gcc dot gnu.org 2020-12-03 22:51 ` jason at gcc dot gnu.org 2020-12-09 5:36 ` cvs-commit at gcc dot gnu.org [this message] 2020-12-09 13:42 ` jason at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-98019-4-jZmMCrLROz@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).