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