This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/81642] -Wtype-limits should not trigger for defined numbers
- From: "egallager at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 23 Aug 2017 13:02:50 +0000
- Subject: [Bug c++/81642] -Wtype-limits should not trigger for defined numbers
- Auto-submitted: auto-generated
- References: <bug-81642-4@http.gcc.gnu.org/bugzilla/>
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.