[LLVMbugs] [Bug 14807] New: no support for named parameters in macros
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri Jan 4 16:38:05 PST 2013
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: unassignedbugs at nondot.org
ReportedBy: nlewycky at google.com
CC: llvmbugs at cs.uiuc.edu, rafael.espindola at gmail.com
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.
More information about the llvm-bugs
mailing list