Bug 2175 – wrong categorizing of dstress test case
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
tools
Product
D
Version
D1 (retired)
Platform
x86
OS
Windows
Creation time
2008-06-25T23:33:00Z
Last change time
2015-06-09T01:36:17Z
Assigned to
thomas-dloop
Creator
davidl
Comments
Comment #0 by davidl — 2008-06-25T23:33:46Z
trunk/run/c/case_01.d shouldn't be categorized as runnable any more
Comment #1 by kamm-removethis — 2008-09-09T10:29:17Z
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.