gcc 3.0.1 preprocessor bug

Alexandre Oliva aoliva@redhat.com
Tue Aug 21 22:51:00 GMT 2001


On Aug 21, 2001, Andy Tai <lichengtai@yahoo.com> wrote:

> #define m(a)  x_##a##0_x.x

> t.cc:12:4: warning: pasting "x_1" and "0_x.x" does not

Odd as it may seem, `0_x.x' is required by the C Standard to be
interpreted as a single preprocessor token of type pp-number.  Token
pasting must result in a single token, which `x_10_x.x' isn't.

-- 
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



More information about the Gcc mailing list