[Bug c/52661] negative maxint for long long gives warning
jmichae3 at yahoo dot com
gcc-bugzilla@gcc.gnu.org
Thu Mar 22 06:16:00 GMT 2012
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52661
--- Comment #3 from Jim Michaels <jmichae3 at yahoo dot com> 2012-03-22 06:13:33 UTC ---
you are not paying attention to the issue. the issue is that this constant is
causing a compiler warning when it should not, and the compiler is treating a
valid signed constant as an unsigned integer.
I recompiled with added -fno-strict-aliasing -fwrapv arguments and I got this
message.
it should NOT be unsigned!
maxint64-bug.cpp:4:19: warning: integer constant is so large that it is
unsigned [enabled by default]
maxint64-bug.cpp:4:5: warning: this decimal constant is unsigned only in ISO
C90 [enabled by default]
More information about the Gcc-bugs
mailing list