void main(){
switch(2){
int i=2;
case i:{}
default:
}
}
DMD v2.076.0 gives:
tt.d(5): Deprecation: case variables have to be const or immutable
tt.d(3): Deprecation: 'switch' skips declaration of variable tt.main.i at tt.d(4)
Internal error: ddmd/backend/symbol.c 1039
Comment #1 by ibuclaw — 2017-09-17T19:35:32Z
I was just a little too quick for you.
*** This issue has been marked as a duplicate of issue 17831 ***