This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the EGCS project.
(C++) Strange error message "invalid #-name"
- To: gcc-bugs@gcc.gnu.org
- Subject: (C++) Strange error message "invalid #-name"
- From: Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
- Date: Mon, 26 Jul 1999 23:16:16 +0200 (MET DST)
With current CVS I am getting a new and somewhat strange error message
alphard[183]% gccvs x.cc -o x
x.cc: In method `class string NameSpace::get()':
x.cc:15: invalid #-line
for the following heavily distilled snippet:
---- cut ----
#include <string>
struct NameSpace
{
string get()
{
#ifdef NEVER
// FIXME: As soon as <sstream> works, use this:
#else
// workaround
// 20 chars is enough for 64bit uints
#endif
}
};
---- cut ----
A full log is at the end of this message, the source file x.cc and
pre-processed source x.ii.gz are MIME attached.
Gerald
Reading specs from
/sw/test/gcc/SunOS/lib/gcc-lib/sparc-sun-solaris2.6/2.96/specs
gcc version 2.96 19990726 (experimental)
/sw/test/gcc/SunOS/lib/gcc-lib/sparc-sun-solaris2.6/2.96/cpp -lang-c++ -v
-D__GNUC__=2 -D__GNUG__=2 -D__GNUC_MINOR__=96 -D__cplusplus -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__EXCEPTIONS -D__GCC_NEW_VARARGS__ -Acpu(sparc) -Amachine(sparc) x.cc
x.ii
GNU CPP version 2.96 19990726 (experimental) (sparc)
#include "..." search starts here:
#include <...> search starts here:
/sw/test/gcc/SunOS/lib/gcc-lib/sparc-sun-solaris2.6/2.96/../../../../include/g++-3
/sw/test/gcc/SunOS/lib/gcc-lib/sparc-sun-solaris2.6/2.96/../../../../sparc-sun-solaris2.6/include
/sw/test/gcc/SunOS/lib/gcc-lib/sparc-sun-solaris2.6/2.96/include
/usr/include
End of search list.
The following default directories have been omitted from the search path:
/usr/local/include
End of omitted list.
/sw/test/gcc/SunOS/lib/gcc-lib/sparc-sun-solaris2.6/2.96/cc1plus x.ii
-quiet -dumpbase x.cc -version -o x.s
GNU C++ version 2.96 19990726 (experimental) (sparc-sun-solaris2.6)
compiled by GNU C version 2.96 19990726 (experimental).
x.cc: In method `class string NameSpace::get()':
x.cc:15: invalid #-line
x.ii.gz