This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: preprocessor bug: @ + MACRO does not work in gcc-3.0
- To: Ovidiu Predescu <ovidiu at cup dot hp dot com>
- Subject: Re: preprocessor bug: @ + MACRO does not work in gcc-3.0
- From: Neil Booth <neil at daikokuya dot demon dot co dot uk>
- Date: Mon, 5 Mar 2001 22:05:57 +0000
- Cc: Nicola Pero <n dot pero at mi dot flashnet dot it>, gcc-bugs at gcc dot gnu dot org,Zack Weinberg <zackw at Stanford dot EDU>
- References: <20010305201541.A30654@daikokuya.demon.co.uk> <200103052132.NAA24502@orion.nsr.hp.com>
Ovidiu Predescu wrote:-
> I'm sorry for any confusion I might have caused. What I actually meant
> to say is that the @CPP_MACRO is perfectly valid syntax in
> Objective-C, because the preprocessor is assumed to expand CPP_MACRO
> before passing it to the front-end. There is a lot of code out there
> relying on this feature of the compiler.
OK, great, we've got that clear. Something along the lines of Zack's
patch is definitely the right way to go, then.
> I believe this was solution 2) that you proposed, am I right? As messy
> as it looks, I believe this is the right solution to the problem.
No it's solution 3). Solution 2) is definitely not a good idea.
Neil.