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

           Summary: ICE when assign struct with ctor to enum
           Product: D
           Version: 2.035
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: major
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: k-fo...@onu.edu


--- Comment #0 from Kyle Foley <k-fo...@onu.edu> 2009-11-05 15:47:07 PST ---
import std.stdio;

struct A
{
    string member;

    this(string m) {
        member = m;
    }
}

int main(string[] args)
{
    enum str = A("hello there");
    writeln( str );

    return 0;
}

---

Internal error: ../ztc/symbol.c 1041

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to