[Issue 4313] undefined identifier error with scope guard statement

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jun 14 12:47:10 PDT 2010


http://d.puremagic.com/issues/show_bug.cgi?id=4313


Trass3r <mrmocool at gmx.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |accepts-invalid


--- Comment #1 from Trass3r <mrmocool at gmx.de> 2010-06-14 12:47:08 PDT ---
Seems a bit strange. According to CompoundStatement::semantic this is rewritten
as try-catch-finally.

Even scope(exit) would have the auto res = 0 in the try block which would
result in undefined identifier.

-- 
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