ldc-developers/ldc — Issue #36: ICE: DValue::getLVal(): Assertion `0' failed
Author: Trass3r
Created: 2011-12-05 04:43:54+00:00
State: open

```d
extern (C)
{
struct Color
{
}

Color C_GetColor(float r, float g, float b, float a)
{
return Color();
}

}

void main()
{

Color color = C_GetColor(1, 2, 3, 4);
}
```
```
$ ldc2 test.d
ldc2: ldc/./gen/dvalue.h:42: virtual llvm::Value* DValue::getLVal(): Assertion `0' failed.
```