[Issue 10791] Strange asm behavior in if's
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Aug 13 05:16:45 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10791
Kenji Hara <k.hara.pg at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #1 from Kenji Hara <k.hara.pg at gmail.com> 2013-08-13 05:16:44 PDT ---
http://dlang.org/statement.html
Statement:
NonEmptyStatement
NonEmptyStatement:
NonEmptyStatementNoCaseNoDefault
NonEmptyStatementNoCaseNoDefault:
AsmStatement
AsmStatement:
asm { }
asm { AsmInstructionList }
AsmStatement does not take semicolon at the end, then
if(1)
asm {};
else
asm {};
is mostly same as:
if (1) { asm {} }
;
else { asm {} }
;
and the 'else' part is stray.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list