union/toString: crash/segfault: What's happening here?

H. S. Teoh hsteoh at quickfur.ath.cx
Fri Jan 12 18:49:45 UTC 2018


On Fri, Jan 12, 2018 at 11:09:47AM +0000, kdevel via Digitalmars-d-learn wrote:
[...]
> On Friday, 12 January 2018 at 02:16:39 UTC, Adam D. Ruppe wrote:
[...]
> > I'd file this as a compiler codegen bug.
> 
> https://issues.dlang.org/show_bug.cgi?id=18232

Yep, definitely a codegen bug.  Apparently, local variables in union
member functions aren't initialized to .init as they should be.  Digging
into the compiler code right now to see if I can find where the problem
is...


T

-- 
Only boring people get bored. -- JM


More information about the Digitalmars-d-learn mailing list