This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c/9569: 8 bytes seems to long for long long int
- From: "Joseph S. Myers" <jsm28 at cam dot ac dot uk>
- To: Falk Hueffner <falk dot hueffner at student dot uni-tuebingen dot de>
- Cc: Neil Booth <neil at daikokuya dot co dot uk>, <aj at gcc dot gnu dot org>, <gcc-bugs at gcc dot gnu dot org>, <stefaandr at hotmail dot com>, <gcc-gnats at gcc dot gnu dot org>
- Date: Thu, 6 Feb 2003 00:06:25 +0000 (GMT)
- Subject: Re: c/9569: 8 bytes seems to long for long long int
On 6 Feb 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?
C++98 is stricter than C90 about integer constants. _Explicitly_ using
long long is one thing (accepted as an extension by the C++ compiler),
_implicitly_ using it (by having too large an integer constant without a
suffix) is another. The behaviour may or may not be as intended; that's
for the C++ maintainers to work out.
--
Joseph S. Myers
jsm28@cam.ac.uk