c/9569: 8 bytes seems to long for long long int

Segher Boessenkool segher@koffie.nl
Thu Feb 6 07:29:00 GMT 2003


Falk Hueffner wrote:

> I still don't get it. In C99, this is perfectly legal code, and does
> what the reporter wants. It is of course documented nowhere, but I
> would assume that g++ inherits C99's long long semantics if long long
> is enabled. Why not this part?

Apart from the C vs. C++ issue, GCC is not a C99 compiler
by default, you have to pass -std=c99 or similar.

I wouldn't mind if this changed...


Segher




More information about the Gcc-bugs mailing list