[Issue 603] Undocumented behaviour: case and default create a scope

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Dec 16 18:36:34 PST 2006


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


smjg at iname.com changed:

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




------- Comment #2 from smjg at iname.com  2006-12-16 20:36 -------
(Originally posted to digitalmars.D.bugs)

A bug is a bug, whether it's the spec or the compiler that's doing what you
intended.  If the case and default statements weren't themselves creating
scopes, then there would be no "undefined identifier" errors.

If the errors aren't coming up when you try my testcase, then DMD has an
OS-version-dependent bug.


-- 



More information about the Digitalmars-d-bugs mailing list