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]

preprocessor token pasting, 2.95 vs 3.0


lines containing things like

    foo.y ## 2.clear()

worked in 2.95.  Is it expected and proper that in 3.0+ this should be

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

and is there any workaround to all the warnings the second form generates?

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


please cc, apparently i'm not on the list yet.

thanks,
justin


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