This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: long long constant
- From: Vincent Torri <torri at math dot u-strasbg dot fr>
- To: Eljay Love-Jensen <eljay at adobe dot com>
- Cc: Falk Hueffner <hueffner at informatik dot uni-tuebingen dot de>, gcc-help at gcc dot gnu dot org
- Date: Fri, 18 Jun 2004 22:48:11 +0200 (MEST)
- Subject: Re: long long constant
Thank you for your answers
Vincent TORRI
On Fri, 18 Jun 2004, Eljay Love-Jensen wrote:
> I stand corrected for C99! :-)
>
> (I use C from 1985 to 1990. After I switched to C++ in 1990, I've not gone
> back to C.)
>
> Not true for C++98.
>
> $ g++ -std=c99 -c longlong.cpp
> cc1plus: warning: "-std=c99" is valid for C/ObjC but not for C++
> longlong.cpp:1: error: integer constant is too large for "long" type
>
> --Eljay
>
>