long long constant: bug or feature?

Lev Assinovsky LAssinovsky@algorithm.aelita.com
Tue Apr 8 14:17:00 GMT 2003


Hi all!
Took gcc-20030331 (gcc 3.3) 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 feature?


Thanks, 


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



More information about the Gcc mailing list