Unnecessary warning
Martin.Niklasson@nokia.com
Martin.Niklasson@nokia.com
Mon Jan 3 04:27:00 GMT 2000
Dear Sirs
I am not sure whether you consider this a bug or a
feature, but it annoys me a little. If you enter the
following C++ lines in a program:
unsigned int foo;
foo = 4294967295; //Or any constant larger than 2^31
cout << foo << endl;
then g++ warns about the constant being
"so large that it is unsigned".
I am using the following system:
PIII 500
Redhat 6.0
Gcc 2.95.2
Regards
Martin Niklasson
martin.niklasson@nokia.com
More information about the Gcc-bugs
mailing list