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: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]
            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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to