```d
import std;
struct framelaundering(FRAME){
static FRAME main;
ref i(){return main.j;}
}
void main(){
int i;
struct here{
ref j(){return i;}
}
framelaundering!here foo;
foo.i++;
i.writeln;
}
```
causes a runtime crash; whats happening to the otherwise magic static keyword was extremely unclear to me.
Id suggest a warning "here from main.here has a context pointer, when its used in framelaundering!here.main is initialed without it because its static" or sometin
Comment #1 by snarwin+bugzilla — 2022-04-17T20:22:31Z