From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10023 invoked by alias); 26 Jan 2002 17:57:28 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 9991 invoked by uid 61); 26 Jan 2002 17:57:28 -0000 Date: Sat, 26 Jan 2002 09:57:00 -0000 Message-ID: <20020126175728.9990.qmail@sources.redhat.com> To: alexandervpetrov@hotmail.com, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org From: neil@gcc.gnu.org Reply-To: neil@gcc.gnu.org, alexandervpetrov@hotmail.com, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org, gcc-gnats@gcc.gnu.org X-Mailer: gnatsweb 2.9.3 Subject: Re: preprocessor/5498: indirect self-reference is not recognized X-SW-Source: 2002-01/txt/msg00899.txt.bz2 List-Id: 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