gcc 3.0.2 prerelease; Solaris SPARC 2.7.1; Parse error
mckelvey
mckelvey@eis-msg-012.jpl.nasa.gov
Tue Oct 16 12:40:00 GMT 2001
Attached small program gets parse errors on prerelease 3.0.2. It compiles on
two other compilers.
Sun...PM>g++ -v -c stest.cc
Reading specs from
/mnt/home3/utilities/lib/gcc-lib/sparc-sun-solaris2.7/3.0.2/specs
Configured with: /mnt/home3/utilities/gcc-3.0.2-20011014/configure
--prefix=/mnt/home3/utilities --verbose --enable-languages=c++
Thread model: posix
gcc version 3.0.2 20011014 (prerelease)
/mnt/home3/utilities/lib/gcc-lib/sparc-sun-solaris2.7/3.0.2/cc1plus -v
-D__GNUC__=3 -D__GNUC_MINOR__=0 -D__GNUC_PATCHLEVEL__=2 -Dsparc -Dsun -Dunix
-D__svr4__ -D__SVR4 -D__sparc__ -D__sun__ -D__unix__ -D__svr4__ -D__SVR4
-D__sparc -D__sun -D__unix -Asystem=unix -Asystem=svr4 -D__NO_INLINE__
-D__STDC_HOSTED__=1 -D_XOPEN_SOURCE=500 -D_LARGEFILE_SOURCE=1
-D_LARGEFILE64_SOURCE=1 -D__EXTENSIONS__ -D__GCC_NEW_VARARGS__ -Acpu=sparc
-Amachine=sparc stest.cc -D__GNUG__=3 -D__GXX_DEPRECATED -D__EXCEPTIONS
-D__GXX_ABI_VERSION=100 -quiet -dumpbase stest.cc -version -o /tmp/cclGLLke.s
GNU CPP version 3.0.2 20011014 (prerelease) (cpplib) (sparc)
GNU C++ version 3.0.2 20011014 (prerelease) (sparc-sun-solaris2.7)
compiled by GNU C version 3.0.2 20011014 (prerelease).
#include "..." search starts here:
#include <...> search starts here:
/mnt/home3/utilities/include/g++-v3
/mnt/home3/utilities/include/g++-v3/sparc-sun-solaris2.7
/mnt/home3/utilities/include/g++-v3/backward
/usr/local/include
/mnt/home3/utilities/lib/gcc-lib/sparc-sun-solaris2.7/3.0.2/include
/mnt/home3/utilities/sparc-sun-solaris2.7/include
/usr/include
End of search list.
stest.cc: In function `U derive(const T&, typename U::value_type (*)(typename
T::value_type&))':
stest.cc:11: parse error before `end'
stest.cc:13: parse error before `(' token
Sun...PM>
More information about the Gcc-bugs
mailing list