This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/81642] -Wtype-limits should not trigger for defined numbers


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]