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: Falk Hueffner <falk dot hueffner at student dot uni-tuebingen dot de>
- To: aj at gcc dot gnu dot org
- Cc: gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, stefaandr at hotmail dot com, gcc-gnats at gcc dot gnu dot org
- Date: 04 Feb 2003 17:09:21 +0100
- Subject: Re: c/9569: 8 bytes seems to long for long long int
- References: <20030204143746.4670.qmail@sources.redhat.com>
aj@gcc.gnu.org writes:
> Synopsis: 8 bytes seems to long for long long int
>
> Responsible-Changed-From-To: unassigned->aj
> Responsible-Changed-By: aj
> Responsible-Changed-When: Tue Feb 4 14:37:46 2003
> Responsible-Changed-Why:
> Taking it.
> State-Changed-From-To: open->closed
> State-Changed-By: aj
> State-Changed-When: Tue Feb 4 14:37:46 2003
> State-Changed-Why:
> The program is broken, add LL to the constant to get
> a long long constant.
Huh? The C standard says: "The type of an integer constant is the
first of the corresponding list in which its value can be
represented." That would make the constant long long without any
suffixes.
The C++ standard doesn't have long long at all, but I would think the
same semantics should be applied here, anything else would be silly.
--
Falk