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


 Description   
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 ?

 Comments   
Comment by Anders Magnusson [ 29/Jul/12 12:02 PM ]
Fixed now. Needed to retain exp blocking past concat.
Generated at Sat Nov 01 02:03:54 CET 2014 using JIRA Enterprise Edition, Version: 3.13.1-#333.