Internal error: ..\ztc\cod4.c 353 struct S { real v; } S f() { S s; return s; } const(S) g() { return f(); } condition: S includes `real' member variable (i.e. it will work when v is float or double). g() returns type const(S) (i.e. it will work when return type is S). g() directly returns return value of f() (i.e. it will work when return value of f() is assigned in local variable).
An ICE on valid code is never trivial!
v2.029 has the same bug. Raise to P1, since the compiler crashes.
This is exactly the same as 2665, which is itself the same as 2560. *** This issue has been marked as a duplicate of issue 2560 ***