[Issue 4313] New: undefined identifier error with scope guard statement
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Jun 14 11:45:45 PDT 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4313
Summary: undefined identifier error with scope guard statement
Product: D
Version: 2.041
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: mrmocool at gmx.de
--- Comment #0 from Trass3r <mrmocool at gmx.de> 2010-06-14 11:45:44 PDT ---
import std.stdio;
void main()
{
scope(exit) writeln(res);
auto res = 0;
}
This compiles, but using failure or success in the scope guard statement gives
"undefined identifier res".
The question is, if this case is an accepts-invalid or if the other two cases
are rejects-valid.
--
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