Summary: DMD raise internal error when struct  includes type real
                    variable (minor situation)
           Product: D
           Version: 2.026
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: trivial
          Priority: P4
         Component: DMD

Internal error: ..\ztc\cod4.c 353

struct S { real v; }
S f() { S s; return s; }
const(S) g() { return f(); }

S includes `real' member variable (i.e. it will work when v is float or
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).


Reply via email to