this seg-v's:
void main()
{
char* t = null;
fn(*t);
}
void fn(inout char j)
{
j = 5;
}
I just spent about 10 minuets trying to figure out why something a lot like that was failing.
In non release mode, DMD should put in an assert(_ !is null) when a pointer is de referenced and used as an out or inout arg.
Comment #1 by verylonglogin.reg — 2013-02-17T00:08:56Z