This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Solaris/x86 namespace bug?
- From: Frank Cusack <fcusack at fcusack dot com>
- To: gcc at gcc dot gnu dot org
- Date: Thu, 23 Feb 2006 17:03:08 -0800
- Subject: Solaris/x86 namespace bug?
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