diff options
author | Jason Merrill <jason@redhat.com> | 2020-12-08 21:47:11 -0500 |
---|---|---|
committer | Jason Merrill <jason@redhat.com> | 2020-12-09 00:36:07 -0500 |
commit | c3a63fb3854392af65a191154e3586e7f5a1066e (patch) | |
tree | bd153bc97384ebe5bb874f1424a0049f86dc49b1 /.gitignore | |
parent | 4eb28483004f8291c1f17df3b242716a5151c180 (diff) | |
download | gcc-c3a63fb3854392af65a191154e3586e7f5a1066e.zip gcc-c3a63fb3854392af65a191154e3586e7f5a1066e.tar.gz gcc-c3a63fb3854392af65a191154e3586e7f5a1066e.tar.bz2 |
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.
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions