[LLVMbugs] [Bug 17811] New: Preprocessor accepts bad function-like macro definition

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Nov 5 00:11:02 PST 2013


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

            Bug ID: 17811
           Summary: Preprocessor accepts bad function-like macro
                    definition
           Product: clang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
          Assignee: unassignedclangbugs at nondot.org
          Reporter: david.majnemer at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

clang accepts:
#define THING(x) #x ## #a

but rejects:
#define THING(x) #a ## #x

GCC, ICC and MSVC reject both.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20131105/a0a847b6/attachment.html>


More information about the llvm-bugs mailing list