This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug preprocessor/70707] INT_MAX used before it is defined
- From: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 18 Apr 2016 20:49:12 +0000
- Subject: [Bug preprocessor/70707] INT_MAX used before it is defined
- Auto-submitted: auto-generated
- References: <bug-70707-4 at http dot gcc dot gnu dot org/bugzilla/>
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.