warning: pasting would not give a valid preprocessing token

Zack Weinberg zack@wolery.cumb.org
Wed Sep 6 19:18:00 GMT 2000


On Sat, Aug 12, 2000 at 11:18:56AM -0400, Byron Stanoszek wrote:
> On Fri, 11 Aug 2000, Zack Weinberg wrote:
> 
> > Very recent versions of gcc should not give that warning for the
> > specific case of , ## <rest argument>.
> 
> Well, I just tried it on the August 11 snapshot. So unless you put in a patch
> over the night, it still issues those warnings.

A month later (apologies)... I believe this has now been fixed.
Please update and let me know if you still have problems.  You want
this change:

2000-09-04  Jakub Jelinek  <jakub@redhat.com>

        * cpplex.c (ON_REST_ARG): Check VAR_ARGS flag of current context,
        use posn - 1 to index into tokens array.
        (maybe_paste_with_next): Adjust caller.

It may or may not be in the 2000-09-04 snapshot, but will be in the
-11 snapshot when that comes out.

zw


More information about the Gcc mailing list