D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 7392 - ICE(symbol.c) on invalid nested case statement
Summary: ICE(symbol.c) on invalid nested case statement
Status: RESOLVED DUPLICATE of issue 16523
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P2 critical
Assignee: No Owner
URL:
Keywords: ice, ice-on-invalid-code
: 12920 (view as issue list)
Depends on:
Blocks:
 
Reported: 2012-01-28 08:10 UTC by timon.gehr
Modified: 2016-10-07 09:47 UTC (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description timon.gehr 2012-01-28 08:10:30 UTC
The following invalid code crashes DMD 2.058head

void main(){
    int	x;
    switch(x){
	foreach(y;[1,2,3]){
            case y: break;
        }
	default: break;
    }
}

Internal error: backend/symbol.c 1032
Comment 1 safety0ff.bugz 2015-04-19 05:04:19 UTC
*** Issue 12920 has been marked as a duplicate of this issue. ***
Comment 2 Martin Krejcirik 2016-10-07 09:47:26 UTC

*** This issue has been marked as a duplicate of issue 16523 ***