<< Back to previous view

[PCC-364] cpp busy loops on recursive/constructed macros Created: 25/Jun/11  Updated: 29/Jul/12

Status: Resolved
Project: pcc
Component/s: C preprocessor
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Iain Hibbert Assignee: Anders Magnusson
Resolution: Fixed Votes: 0
Environment: NetBSD/i386

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 ?

Comment by Anders Magnusson [ 29/Jul/12 12:02 PM ]
Fixed now. Needed to retain exp blocking past concat.
Generated at Sat Oct 21 06:44:28 CEST 2017 using JIRA Enterprise Edition, Version: 3.13.1-#333.