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: gcc 3.0.1 preprocessor bug


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


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