This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: egcs internal error
- To: Klaus Bergdolt <Klaus dot Bergdolt at de dot bosch dot com>
- Subject: Re: egcs internal error
- From: Mumit Khan <khan at xraylith dot wisc dot EDU>
- Date: Fri, 9 Jul 1999 12:30:41 -0500 (CDT)
- cc: egcs-bugs at egcs dot cygnus dot com
On Fri, 9 Jul 1999, Klaus Bergdolt wrote:
> Hi,
> the attached file contains generated code that egcs doesn't compile.
> SUN CC doesn't complain at all.
>
>
>
> g++ --version:
> egcs-2.91.60
>
> g++ -c TTT.i
> In file included from TextSeq.c:7:
> TextSeq.h:1066: Internal compiler error.
> TextSeq.h:1066: Please submit a full bug report to
> `egcs-bugs@cygnus.com'.
> TextSeq.h:1066: See <URL:http://egcs.cygnus.com/faq.html#bugreport> for
> details
>
The problem is that GCC dies when it sees identifier named __sz, which
of course you can't use in a conformant program. Rename __sz to
x__sz, and I bet the problem will go away. See Section 17.4.3.12
[lib.global.names] in the standard about identifiers name that start
with '__'.
However, you did find a bug in GCC since an ICE is always a bug.
btw, your file is C++, not C, so please name the preprocessed file
appropriately (.ii not .i).
Regards,
Mumit