[Issue 2175] wrong categorizing of dstress test case

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Sep 9 08:29:18 PDT 2008


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


kamm-removethis at incasoftware.de changed:

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




------- Comment #1 from kamm-removethis at incasoftware.de  2008-09-09 10:29 -------
The comment in the file states:

// this clearly seems illegal but I can't find any rule combination disallowing
it

And indeed, the D spec seems not to forbid nested functions inside switch
blocks to contain a case statement; in fact, the spec is not very specific
about case statements in general (see the scope issues...).

However, in this case it seems clear enough that it should be illegal. I've
moved it to nocompile in dsource-dstress 1599.


-- 



More information about the Digitalmars-d-bugs mailing list