[LLVMbugs] [Bug 3880] New: Preprocessor doesn't support GNU extension?

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Wed Mar 25 02:46:57 PDT 2009


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

           Summary: Preprocessor doesn't support GNU extension?
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: FreeBSD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: preprocessor
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: ed at 80386.nl
                CC: llvmbugs at cs.uiuc.edu
            Blocks: 3696


The following code doesn't get preprocessed by Clang properly:

#define fail(...) \
        foo("Failed" , ## __VA_ARGS__, NULL)

int
main(int argc, char *argv[])
{

        fail();
}

GCC does accept it and processes it as follows:

int
main(int argc, char *argv[])
{

 foo("Failed", NULL);
}


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