[cfe-dev] Fix for preprocessor paste bug
richard at metafoo.co.uk
Wed Jun 13 12:06:01 PDT 2012
On Wed, Jun 13, 2012 at 1:49 AM, Andy Gibbs <andyg1001 at hotmail.co.uk> wrote:
> Hi again,
> > In -fms-extension -Wno-invalid-token-paste mode, the patch
> > regresses this test, because we're no longer invoking
> > LookUpIdentifierInfo on the pasted 'ab' token:
> > #define foo a ## b ## = 0
> > int foo;
> > Switching out the 'return true' for a 'break' should resolve
> > that, I think. Your fix should also apply in the
> > AsmPreprocessor case.
> Your wish is my command! Attached is a revised patch.
Many thanks, r158412. [I slightly tweaked your tests.]
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the cfe-dev