gcc 3.3: long long bug?

Lev Assinovsky LAssinovsky@algorithm.aelita.com
Mon Apr 7 11:29:00 GMT 2003


Hi all!
Took gcc-20030331 snap.
Compile max.cpp:

const long long n = 34359738368; // 2^35

Got:
max.cpp:1: error: integer constant is too large for "long" type

gcc3.2 doesn't give any errors.

Is that an error of gcc 3.3 or mine?

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



More information about the Gcc-help mailing list