------- Comment #3 from ebotcazou at gcc dot gnu dot org 2008-06-01 07:25 ------- > Given that, I think a typical user would assume (as I have) that GCC would > treat -0x80000000 as the signed value -2^31; otherwise there would seem to be > no way to write a single constant to represent that valid value.
You're confusing the internal representation, described by the paragraph you quoted, and the syntax of literals. There is no bug in this case, it's the well-know limitation of C whereby you need to write INT_MIN as (-INT_MAX - 1). -- ebotcazou at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |INVALID http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36402