[Issue 2847] New: DMD raise internal error when struct includes type real variable (minor situation)

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Apr 17 08:48:01 PDT 2009


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: bugzilla at digitalmars.com
        ReportedBy: hskwk at 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).


-- 



More information about the Digitalmars-d-bugs mailing list