[Issue 10703] Front-end code removal "optimisation" with try/catch blocks produces wrong codegen
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Jul 23 07:32:06 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10703
--- Comment #1 from Iain Buclaw <ibuclaw at ubuntu.com> 2013-07-23 07:32:05 PDT ---
(In reply to comment #0)
>
> void main()
> {
> int a;
> goto L2; // BOOM!
>
> try { }
> catch (Exception e) {
> L2: ;
> a += 100;
> }
> assert(a == 100);
> }
>
For clarification, the front-end currently passes this to the back-end.
void main()
{
int a;
goto L2; // BOOM!
assert(a == 100);
}
--
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