[Bug c++/90881] -Wunused-value false positive in SFINAE context
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Jun 14 00:02:00 GMT 2019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90881
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |diagnostic
Status|UNCONFIRMED |NEW
Last reconfirmed| |2019-06-14
Ever confirmed|0 |1
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Confirmed. We shouldn't give that warning in unevaluated contexts (decltype,
sizeof, etc.) because unevaluated operands have no effects at all, with or
without the comma operator.
More information about the Gcc-bugs
mailing list