Bug 1025 – mixin("scope(exit) call();"); is broken

Status
RESOLVED
Resolution
WORKSFORME
Severity
major
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
All
Creation time
2007-03-05T11:09:00Z
Last change time
2014-02-16T15:25:53Z
Keywords
wrong-code
Assigned to
bugzilla
Creator
tomas

Comments

Comment #0 by tomas — 2007-03-05T11:09:36Z
import std.stdio; void main() { mixin("writefln('A');"); mixin("scope(exit) writefln('C');"); mixin("writefln('B');"); } // outputs ACB
Comment #1 by thomas-dloop — 2007-03-08T10:30:20Z
Comment #2 by tomas — 2007-05-09T07:03:12Z
*** Bug 1222 has been marked as a duplicate of this bug. ***
Comment #3 by bugs-d — 2009-03-29T23:58:31Z
As of DMD 1.041 and 2.026, this outputs "ABC". -[Unknown]