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

--- Comment #0 from 2011-11-12 08:44:16 PST ---
  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:
------- You are receiving this mail because: -------

Reply via email to