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

           Summary: opAssign to in declaration broken in dmd 1.074 beta1
           Product: D
           Version: future
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: regression
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: wallbra...@gmail.com


--- Comment #0 from Jakob Bornecrantz <wallbra...@gmail.com> 2012-04-03 
11:41:54 PDT ---
The following code works in dmd.1.073 but is broken in dmd.1.074.

struct Foo {}

struct Bar {
    void opAssign(Foo f) {}
}

void test() {
    Foo f;
    Bar bar = f; // Broken in dmd 1.074-beta

    Bar baz;
    baz = f; // Works as expected.
}

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

Reply via email to