[LLVMbugs] [Bug 15675] New: Empty macro arguments cause whitespace to go missing
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu Apr 4 14:16:50 PDT 2013
http://llvm.org/bugs/show_bug.cgi?id=15675
Bug ID: 15675
Summary: Empty macro arguments cause whitespace to go missing
Product: clang
Version: 3.2
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
Assignee: unassignedclangbugs at nondot.org
Reporter: harald at gigawatt.nl
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
#define A()
#define B(x)x
#define C(x) x
#define STR(x) STR_(x)
#define STR_(x) #x
STR([ A()])
STR([ B()])
STR([ C()])
is preprocessed to
"[ ]"
"[]"
"[]"
It should be "[ ]" for all three lines, which is what gcc and mcpp do.
--
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/20130404/3e065f46/attachment.html>
More information about the llvm-bugs
mailing list