preprocessor/5498: indirect self-reference is not recognized
alexandervpetrov@hotmail.com
alexandervpetrov@hotmail.com
Sat Jan 26 12:16:00 GMT 2002
>Number: 5498
>Category: preprocessor
>Synopsis: indirect self-reference is not recognized
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Jan 26 09:26:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: Alexander Petrov
>Release: gcc version 2.95.1 19990816 (release)
>Organization:
>Environment:
SunOS dionysus 5.7 Generic_106541-02 sun4u sparc SUNW,Ultra-5_10
>Description:
Macro A refers to B, macro B refers to A;
single A is expanded twice in the following code:
# define A A_EXP B(
# define B() B_EXP A
A )
result:
A_EXP B_EXP A_EXP B(
>How-To-Repeat:
# define A A_EXP B(
# define B() B_EXP A
A )
>Fix:
explicit specification of object-like macro rescan needed
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the Gcc-bugs
mailing list