[LLVMbugs] [Bug 1820] New: Macro expansion bug

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Thu Nov 22 20:26:05 PST 2007


http://llvm.org/bugs/show_bug.cgi?id=1820

           Summary: Macro expansion bug
           Product: cfe
           Version: unspecified
          Platform: PC
        OS/Version: NetBSD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: preprocessor
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: neil at daikokuya.co.uk
                CC: llvmbugs at cs.uiuc.edu


clang doesn't implement the rescan rule of C99 6.10.3.4p2 correctly.

#define f(x) h(x
#define h(x) x(void) 
extern int f(f));

should preprocess to

   extern int f(void);

clang outputs

   extern int h(void;

Compare to GCC, ucpp, sparse and Comeau online at
http://www.comeaucomputing.com/tryitout/ for example.


-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list