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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Jun 19 06:31:27 PDT 2008


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


kamm-removethis at incasoftware.de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID




------- Comment #3 from kamm-removethis at incasoftware.de  2008-06-19 08:31 -------
I don't see how this can be a bug, the spec says switch statements introduce a
new scope and dmd and gdc behave accordingly. This fails, as expected:

switch(1) {
  int i;
}
i++; // undefined identifier: i


-- 



More information about the D.gnu mailing list