[Issue 12120] New: Static opCall for structures skipped (Github HEAD)

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Feb 9 10:32:05 PST 2014


https://d.puremagic.com/issues/show_bug.cgi?id=12120

           Summary: Static opCall for structures skipped (Github HEAD)
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: regression
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: puneet at coverify.org


--- Comment #0 from Puneet Goel <puneet at coverify.org> 2014-02-09 10:32:02 PST ---
Here is the reduced code.

struct Foo {
  this(int) {}
  static Foo opCall() {
    import std.stdio;
    writeln("opCall");
    Foo foo = Foo(0);
    return foo;
  }
}

void main() {
  Foo foo = Foo();
}

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


More information about the Digitalmars-d-bugs mailing list