This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
preprocessor/538: cpp0 loops while expanding macros
- To: gcc-gnats at gcc dot gnu dot org
- Subject: preprocessor/538: cpp0 loops while expanding macros
- From: loechner at informatik dot uni-kl dot de
- Date: 15 Sep 2000 09:03:31 -0000
- Reply-To: loechner at informatik dot uni-kl dot de
- Resent-Cc: gcc-prs at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org
- Resent-Reply-To: gcc-gnats@gcc.gnu.org, loechner@informatik.uni-kl.de
>Number: 538
>Category: preprocessor
>Synopsis: cpp0 loops while expanding macros
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Sep 15 02:06:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator: Bernd Löchner
>Release: gcc version 2.96 20000911 (experimental)
>Organization:
>Environment:
Solaris 2.7
>Description:
The preprocessor (gcc -E) loops for the given example which
is abstracted from existing code. Older versions of gcc
show the expected behavior. I don't know if the example
conforms to the new ISO-standard, but looping isn't
acceptable anyway.
>How-To-Repeat:
#define A(X,Y) X,Y
#define B ,C
#define C K(
#define K(S) S
#define T C{A(1,0)} )B{A(1,0)} )
T
>Fix:
use gcc -E -traditional (works for the tiny example, but
strangely not for the project, since it's then missing
*.d files (second bug ???)).
>Release-Note:
>Audit-Trail:
>Unformatted: