[Issue 4499] New: calls to @disabled postblit are emitted

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Jul 23 23:55:39 PDT 2010


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

           Summary: calls to @disabled postblit are emitted
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Keywords: accepts-invalid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: kamm-removethis at incasoftware.de


--- Comment #0 from Christian Kamm <kamm-removethis at incasoftware.de> 2010-07-23 23:55:37 PDT ---
The following code triggers the "can't happen" assert.

struct S {
  @disable this(this) { assert(false, "can't happen"); }
  void foo() {}
}

auto foo() {
  S s;
  return s;
}

void main() {
  auto s = foo();
  s.foo();
}

-- 
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