Issue Details (XML | Word | Printable)

Key: PCC-364
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Anders Magnusson
Reporter: Iain Hibbert
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
pcc

cpp busy loops on recursive/constructed macros

Created: 25/Jun/11 11:01 PM   Updated: 29/Jul/12 12:02 PM
Component/s: C preprocessor
Affects Version/s: None
Fix Version/s: None

Environment: NetBSD/i386


 Description  « Hide
the following code example

#define A(x) A ## x
#define AB A(B)

AB

when compiled with "pcc -E" just busy-loops as the AB->A(B)->AB is recursive, but
I think it should cease operations as per C99 6.10.3.4 ?

 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Anders Magnusson added a comment - 29/Jul/12 12:02 PM
Fixed now. Needed to retain exp blocking past concat.