ANSI C++ forbids long long integer constants

Jim McKelvey mckelvey@solstice.jpl.nasa.gov
Fri Mar 19 19:02:00 GMT 1999


fafnir:namelist>make test
g++ -c       -DNO_NAMESPACE  -D__USE_GNU  -g
-pipe  -ansi  -pedantic  -pedantic-errors  -fstrict-aliasing
-fsjlj-exceptions  -ffloat-store  -fshort-enums  -fno-common
-fno-external-templates  -fno-implicit-templates  -ffor-scope
-fno-nonnull-objects  -ftemplate-depth-30  -Wall  -W  -Wbad-function-cast
-Wpointer-arith  -Wcast-qual  -Wcast-align  -Wconversion
-Wstrict-prototypes  -Wmissing-prototypes  -Wmissing-declarations
-Wnested-externs  -Woverloaded-virtual  -Wwrite-strings  -Winline  -Wshadow
-Wtraditional  -Wno-long-long  -L/usr/local/lib/gcc-lib/m68k-next-nextstep3
-o NLInteger.o NLInteger.cc
NLInteger.cc: In method `bool
NLInteger::getValue(unsigned_int &) const':
NLInteger.cc:8: ANSI C++
forbids long long integer constants
*** Exit 1
Stop.


But it should be OK if I specify -Wno-long-long, correct?

-Wno-long-long allows long long int, but not long long int constants
(without __extension__, of course).


Next Motorola running 3.3, egcs 1.1.2

James W. McKelvey
mckelvey@solstice.jpl.nasa.gov




More information about the Gcc-bugs mailing list