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/52661] negative maxint for long long gives warning


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]


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