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

           Summary: new with struct doesn't allow field assignment
           Product: D
           Version: D2
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: d...@dawgfoto.de


--- Comment #0 from d...@dawgfoto.de 2011-11-12 08:44:16 PST ---
struct
{
  int a;
}

auto s1 = S(2); // works
auto s2 = new S(2); // doesn't work

----------

New with struct strictly requires a defined constructor while
it should have the same construction rules as a normal struct literal.

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

Reply via email to