www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 2175] New: wrong categorizing of dstress test case

reply d-bugmail puremagic.com writes:

           Summary: wrong categorizing of dstress test case
           Product: D
           Version: 1.030
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: dstress
        AssignedTo: thomas-dloop kuehne.cn
        ReportedBy: davidl 126.com

trunk/run/c/case_01.d shouldn't be categorized as runnable any more

Jun 25 2008
parent d-bugmail puremagic.com writes:

kamm-removethis incasoftware.de changed:

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

------- Comment #1 from kamm-removethis 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

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.

Sep 09 2008