Comment #0 by john.loughran.colvin — 2014-11-29T13:22:02Z
Reduced from a segfault compiling runtime:
void f()
{
T1!cfloat;
}
template T0(T)
{
void g(T v)
{
v = 0 + 0i;
}
}
template T1(T)
{
void h()
{
if (T0!T)
return;
}
}
output when compiled:
test3.d(18): Error: expression Floating!cfloat of type void does not have a boolean value
test3.d(19): Error: return expression expected
test3.d(3): Error: template instance test3.Array!cfloat error instantiating
Segmentation fault: 11
Tested on OS X 10.10, dmd git HEAD
Comment #1 by john.loughran.colvin — 2014-11-29T13:41:19Z