http://llvm.org/bugs/show_bug.cgi?id=14807
Bug #: 14807
Summary: no support for named parameters in macros
Product: new-bugs
Version: unspecified
Platform: PC
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P
Component: new bugs
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
Testcase:
.macro foo parama=0, paramb=0
text \parama \paramb
.endm
foo X
foo X, Y
foo X, paramb=1
foo paramb=2
foo paramb=3, parama=1
should expand to:
text X 0
text X Y
text X 1
text 0 2
text 1 3
instead we error on the named parameters:
macro.s:7:14: error: unexpected token in macro instantiation
foo X, paramb=1
^
macro.s:8:11: error: unexpected token in macro instantiation
foo paramb=2
^
macro.s:9:11: error: unexpected token in macro instantiation
foo paramb=3, parama=1
^
--
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