This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
Re: preprocessor/5498: indirect self-reference is not recognized
- From: neil at gcc dot gnu dot org
- To: alexandervpetrov at hotmail dot com, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org
- Date: 26 Jan 2002 17:57:28 -0000
- Subject: Re: preprocessor/5498: indirect self-reference is not recognized
- Reply-to: neil at gcc dot gnu dot org, alexandervpetrov at hotmail dot com, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
Synopsis: indirect self-reference is not recognized
State-Changed-From-To: open->closed
State-Changed-By: neil
State-Changed-When: Sat Jan 26 09:57:27 2002
State-Changed-Why:
This is not a bug; the expansion of macro A has terminated
by the time you get to the ')', and therefore the second
invocation of A is not nested, and A is re-expanded.
The EDG front end does the same as GCC too; see
http://www.comeaucomputing.com/tryitout/
with the -E option.
If you have a compiler that behaves differently, that
compiler is buggy.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5498