void main()
{
int g;
struct A
{
bool a()
{
return (g == 0);
}
}
auto b = new A[1];
b[0].a;
}
Segfaults at "return (g == 0);"
on "gdc (Debian 8.3.0-6) 8.3.0"
and on dlang.org online compiler, indicating a front end issue, so I reported it for dmd.
Comment #1 by b2.temp — 2019-11-03T13:01:54Z
It's indeed a FE e*problem but it's not an ICE, compilation succeeds.
Comment #2 by razvan.nitu1305 — 2023-04-18T11:50:51Z
It seems that the garbage collector lacks the information to properly set the context pointer.
Comment #3 by robert.schadek — 2024-12-13T19:04:36Z