[Issue 10703] Front-end code removal "optimisation" with try/catch blocks produces wrong codegen

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Nov 20 09:23:10 PST 2013


https://d.puremagic.com/issues/show_bug.cgi?id=10703



--- Comment #5 from Iain Buclaw <ibuclaw at ubuntu.com> 2013-11-20 09:23:00 PST ---
(In reply to comment #3)
> C# require that goto's only be used to jump to labels in the same, or a parent,
> scope, and never to a child scope. Would that be a valid way to eliminate this
> problem?

GDC's way of eliminating the problem is to error when you try to goto into a
try *or* catch block... but this is only detected in the glue layer.  If the
front-end omits the block then I am unable to properly analyse the codegen.  :)

Hopefully, Daniel's patch to get for skipped initialisations will include this
so I no longer require this glue-layer code checking.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list