This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: preprocessor token pasting, 2.95 vs 3.0


On Jun 19, 2001, Justin Guyett <jfg@sonicity.com> wrote:

>     foo.bar ## 2 ## .baz()

> ../test.h:32:9: warning: pasting "bar2" and "." does not give a valid
> preprocessing token

You don't need the second `##', since `bar2' and `.' are to be parsed
as separate tokens anyway.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]