Bug 5916 – DMD: bad message for incorrect operands error

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
Other
OS
Linux
Creation time
2011-05-01T10:53:00Z
Last change time
2015-06-09T05:12:01Z
Assigned to
nobody
Creator
ibuclaw

Comments

Comment #0 by ibuclaw — 2011-05-01T10:53:03Z
The numbers are passed backwards in the format: "%u operands found for %s instead of the expected %u", so I'd imagine just needs switching around. ie: asm { bound; } => 2 operands found for bound instead of the expected 0 asm { bound AX; } => 2 operands found for bound instead of the expected 1 asm { bound AX, BX, CX; } => 2 operands found for bound instead of the expected 3
Comment #1 by bugzilla — 2011-05-01T20:06:15Z