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

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

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)


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 ?

 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Anders Magnusson made changes - 28/Jul/12 10:22 PM
Field Original Value New Value
Assignee Anders Magnusson [ ragge ]
Anders Magnusson added a comment - 29/Jul/12 12:02 PM
Fixed now. Needed to retain exp blocking past concat.

Anders Magnusson made changes - 29/Jul/12 12:02 PM
Status Open [ 1 ] Resolved [ 5 ]
Resolution Fixed [ 1 ]