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]

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


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


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