[Issue 1041] regression: incorrect code generation for scope(exit) inside switch

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Aug 11 20:46:42 PDT 2010


--- Comment #6 from Michael P <baseball.mjp at gmail.com> 2010-08-11 20:46:40 PDT ---
Very closely related bug with case statements. Changing the line "default:" to
"case 3:" produces the error "case cannot be in different try block level from
switch" in dmd, but again no error in gdc. The code for handling this is in
CaseStatement::toIR in dmd, but there is nothing to check for that in gdc.

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

More information about the D.gnu mailing list