[Bug c++/81642] -Wtype-limits should not trigger for defined numbers
egallager at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Aug 23 14:38:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81642
Eric Gallager <egallager at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2017-08-23
CC| |egallager at gcc dot gnu.org
Ever confirmed|0 |1
--- Comment #2 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to Jakub Jelinek from comment #1)
> I don't think the fact that NUM_IFC comes from a macro should be relevant to
> whether the warning is emitted or not, that will just hide real bugs in
> other code.
The macro might not always have the same value though, it could be
conditionally defined, or expand to __LINE__ or __COUNTER__ or something. So
I'm going to confirm this.
More information about the Gcc-bugs
mailing list