Comment #0 by dlang-bugzilla — 2007-09-22T06:22:41Z
-----
bool isNull(char[] str)
{
return str is null;
}
const bool test = isNull("hello!");
-----
Output:
> Assertion failure: '0' on line 838 in file 'constfold.c'
>
> abnormal program termination
Replacing "is" with "==" fixes it.
Comment #1 by clugdbug — 2009-05-05T02:09:03Z
Created attachment 351
Patch against DMD2.029
Another trivial one. The case where only one parameter was null had been forgotten.