gcc 3.3: long long bug?

Lev Assinovsky LAssinovsky@algorithm.aelita.com
Mon Apr 7 13:43:00 GMT 2003


No I meant MSVC 6.2 on Windows.
Yes, it works without any suffixes 
with 3.2 on Unix.
Also this:
const long long n =  100000000 * 1000000000;

works with 3.3 on Unix either. 

----
Lev Assinovsky
Aelita Software Corporation
O&S Core Division, Programmer
ICQ# 165072909


> -----Original Message-----
> From: A.R. Ashok Kumar [mailto:ashokar@sankhya.com]
> Sent: Monday, April 07, 2003 5:35 PM
> To: Lev Assinovsky
> Cc: Andreas Schwab; Eric Botcazou; gcc-help@gcc.gnu.org
> Subject: RE: gcc 3.3: long long bug?
> 
> 
> Hi,
> 
> > No, what was the reason to change the behavior of 3.2?
> > We developing the portable application which should work
> > in Windows 2000 also.
> > There is an automatic recognition of long long constants in 
> MSVC though you can 
> > add i64 suffix.
> > With 3.3 I have to write:
> > const long long n =
> > #ifdef WIN32
> > 34359738368
> > #else
> > 34359738368LL
> > #endif
> > ;
> > 
> > Not nice, right?
> 
>   Is gcc3.3 for Win32 gives error for the following statement?
> 
>     const long long n = 34359738368LL;
> 
>   If so, it is not nice behaviour. Does it work for gcc 3.2 ?
> 
> - AshokA -
> 
> 
> 



More information about the Gcc-help mailing list