http://llvm.org/bugs/show_bug.cgi?id=22529
Bug ID: 22529
Summary: Incorrect expansion of macro
Product: clang
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: C++
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
#define C(_line) #_line
#define _B(_line) C(_line)
#define A ""_B(__LINE__)
A
This code is expanded to
""_B(9)
while I am expecting
"""9"
Renaming the _B macro to B or inserting a space before _B seems to solve the
issue.
--
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