[Bug c/70707] INT_MAX used before it is defined
aleks at physik dot tu-berlin.de
gcc-bugzilla@gcc.gnu.org
Mon Apr 18 20:26:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70707
--- Comment #3 from Alexander Kleinsorge <aleks at physik dot tu-berlin.de> ---
Problem confirmed with: gcc (GCC) 5.3.0
Usage before definition is no header problem (as suggested by Lewis).
// TestCode, no includes
# define INT_MIN (-INT_MAX - 1)
# define INT_MAX 2147483647
int test1(int b) {
return (b + INT_MIN);
}
int main(int argc, char** argv) {
return test1( argc );
}
// EndOfFile
More information about the Gcc-bugs
mailing list