[Issue 4339] Struct destructor + invariant + struct parameter = horrific error message

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jun 28 12:24:00 PDT 2010


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


Walter Bright <bugzilla at digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla at digitalmars.com


--- Comment #1 from Walter Bright <bugzilla at digitalmars.com> 2010-06-28 12:23:57 PDT ---
The isReturnLabel code is very old. It sets the Btry to NULL to indicate it is
outside of any try block. The problem is that years later, the RAII for
parameters was added that winds up wrapping the whole function shebang inside a
try-finally in order to run the destructors for the parameters in the finally.

Hence, now the return label actually is inside a try block.

The fix should be to set it to NULL only if there aren't parameters that need
destruction.

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