---
void main(){
scope(exit) int x=3;
assert(x==3);
}
---
---
Internal error: ddmd/backend/symbol.c 1040
---
The problem is that the parser passes PScurlyscope instead of PSscope when parsing the scope guard statement.
Comment #1 by dlang-bugzilla — 2017-07-26T10:43:34Z