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 preprocessor/70707] INT_MAX used before it is defined


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70707

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|c                           |preprocessor

--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
There is no bug here.  The prepocessor works this way.
That is the INT_MIN is replaced with (-INT_MAX - 1) and then INT_MAX is
replaced with 2147483647 when the usage of INT_MIN happens.

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