This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: egcs internal error


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]