June 26, 2008 [Issue 2175] New: wrong categorizing of dstress test case | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=2175 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 -- |
September 09, 2008 [Issue 2175] wrong categorizing of dstress test case | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=2175 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 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. -- |
Copyright © 1999-2021 by the D Language Foundation