This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

preprocessor/538: cpp0 loops while expanding macros



>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:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]