[Issue 7817] New: opAssign to in declaration broken in dmd 1.074 beta1

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Apr 3 11:41:19 PDT 2012


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: nobody at puremagic.com
        ReportedBy: wallbraker at gmail.com


--- Comment #0 from Jakob Bornecrantz <wallbraker at 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: -------


More information about the Digitalmars-d-bugs mailing list