http://d.puremagic.com/issues/show_bug.cgi?id=2847

           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
        AssignedTo: bugzi...@digitalmars.com
        ReportedBy: hs...@inter7.jp


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).


-- 

Reply via email to