G++ preprocessor problem with unary ## -- summary

Neil Booth neil@daikokuya.demon.co.uk
Wed Mar 21 10:33:00 GMT 2001


Dave Martindale wrote:-

> After doing this, I noticed that the LEDA authors must have known about
> the problem already, because the header file which #includes the troublesome
> file has a special check for DECCXX.  If that symbol is defined, the outer
> header file includes a pre-expanded version of the troublesome file rather
> than the "normal" one.  This says to me that they *knew* the code didn't
> work properly on at least one compiler, but rather than fixing it at the
> source level they built an ugly workaround instead.

:-)

Someone somewhere said it has been fixed upstream; though I have no idea how.

Neil.



More information about the Gcc-bugs mailing list