http://d.puremagic.com/issues/show_bug.cgi?id=9738
Summary: inline asm offset expression looks like array indexing Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nob...@puremagic.com ReportedBy: c...@dawg.eu --- Comment #0 from Martin Nowak <c...@dawg.eu> 2013-03-16 12:11:46 PDT --- void foo() { size_t[3] regs = void; asm { mov regs[1], RAX; } } regs[1] is interpreted as add the offset of regs to 1, i.e. *cast(size_t)((cast(void*)®s + 1). This can already be expressed by one of the following two alternatives. 1[regs] or [regs + 1] I think we should make this syntax an error, it's too easy to confuse with array indexing. In the longterm we might consider to interpret this as array indexing. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------