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: nob...@puremagic.com ReportedBy: mrmoc...@gmx.de --- Comment #0 from Trass3r <mrmoc...@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: -------