I found this when building doxygen.  Found a simple test case on the web:
<http://forum.sun.com/thread.jspa?threadID=27705&messageID=99171>

$ cat ll.cc
#include <signal.h>
int CS;
$ g++ ll.cc
ll.cc:2: error: expected unqualified-id before numeric constant

It works correctly on Solaris/sparc.  My system is amd64, using the
Sun gcc.  /usr/include/sys/regset.h #define's CS on x86/amd64 only ...
hence the brokenness.  A comment there says "The names and offsets
defined here are specified by i386 ABI suppl.".  So my question is,
should these be in a namespace, or is code that uses these various
register names as symbols broken.

I couldn't find any mentions of this kind of error on non-Solaris
machines, but I don't think that points to an answer either way.

thanks
-frank

Reply via email to