This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: gcc 3.0.1 preprocessor bug
- To: atai at atai dot org
- Subject: Re: gcc 3.0.1 preprocessor bug
- From: Alexandre Oliva <aoliva at redhat dot com>
- Date: 22 Aug 2001 02:48:05 -0300
- Cc: gcc at gcc dot gnu dot org
- Organization: GCC Team, Red Hat
- References: <20010821032054.7589.qmail@web10507.mail.yahoo.com>
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