Bug 920 – Auto classes referenced where scope should be used

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P3
Component
dlang.org
Product
D
Version
D1 (retired)
Platform
All
OS
All
Creation time
2007-02-02T04:04:00Z
Last change time
2014-02-16T15:22:59Z
Keywords
spec
Assigned to
bugzilla
Creator
matti.niemenmaa+dbugzilla

Comments

Comment #0 by matti.niemenmaa+dbugzilla — 2007-02-02T04:04:33Z
The phrase "auto instances" is used, and the third, longest, block of code uses "auto Foo f" where it should use "scope Foo f".
Comment #1 by bugzilla — 2008-12-08T00:56:24Z
Fixed in DMD 2.021
Comment #2 by matti.niemenmaa+dbugzilla — 2008-12-08T02:49:05Z
This bug was reported against 1.0, and the 1.0 docs still exhibit both of these anachronisms: http://www.digitalmars.com/d/1.0/statement.html#ScopeGuardStatement
Comment #3 by braddr — 2009-01-01T02:29:50Z
Looks like almost all of the cases are fixed, but there's still one more. In the Return Statement block: ==== snip ==== Before the function actually returns, any objects with auto storage duration are destroyed, ==== end snip ==== This is the case for both the 1.0 and 2.0 versions of the page.
Comment #4 by matti.niemenmaa+dbugzilla — 2009-04-01T11:52:44Z
Fixed with DMD 1.042.
Comment #5 by bugzilla — 2009-04-01T13:46:08Z
Fixed DMD 1.042 and 2.027