diff options
author | Marek Polacek <polacek@redhat.com> | 2019-11-13 15:59:53 +0000 |
---|---|---|
committer | Marek Polacek <mpolacek@gcc.gnu.org> | 2019-11-13 15:59:53 +0000 |
commit | 7b521fbd43b3cbaf4313c7719bed72d4de3b49a9 (patch) | |
tree | c86966eafc86c3b5324e227941a89502db30c147 /gcc/tree-ssanames.c | |
parent | 2aaf32ab603d05d7ddc12c7ec1db3314044cf91a (diff) | |
download | gcc-7b521fbd43b3cbaf4313c7719bed72d4de3b49a9.zip gcc-7b521fbd43b3cbaf4313c7719bed72d4de3b49a9.tar.gz gcc-7b521fbd43b3cbaf4313c7719bed72d4de3b49a9.tar.bz2 |
PR c++/89070 - bogus [[nodiscard]] warning in SFINAE.
This is a complaint that we issue a [[nodiscard]] warning even in SFINAE
contexts. Here 'complain' is tf_decltype, but not tf_warning so I guess
we can fix it as below.
* cvt.c (convert_to_void): Guard maybe_warn_nodiscard calls with
tf_warning.
* g++.dg/cpp1z/nodiscard7.C: New test.
From-SVN: r278147
Diffstat (limited to 'gcc/tree-ssanames.c')
0 files changed, 0 insertions, 0 deletions