G++ reuses assembly labels

Geoff Keating geoffk@cygnus.com
Tue May 30 09:01:00 GMT 2000


The current mainline (which will become 3.0 or 2.96) complains:

/var/tmp/M/extra/src/c-client/mail.h:705: parse error before `or'
/var/tmp/M/extra/src/c-client/mail.h:706: parse error before `not'

because 'or' and 'not' are reserved words in C++.

Once I changed them to x_or and x_not, everything went fine, but I
don't know if the problem is actually fixed because the code generated
is significantly different.  It might be helpful for you to try the
CVS mainline on the whole package to see if it works (after fixing the
'or' and 'not' problem).

The problem did appear with my stock 2.95.2 install.

The problem seems to be related to output of thunks for multiple
inheritance.
-- 
- Geoffrey Keating <geoffk@cygnus.com>


More information about the Gcc-bugs mailing list