[Issue 17502] New: [The D Bug Tracker]

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Wed Jun 14 04:38:48 PDT 2017


https://issues.dlang.org/show_bug.cgi?id=17502

          Issue ID: 17502
           Summary: [The D Bug Tracker]
           Product: D
           Version: D2
          Hardware: All
               URL: http://dlang.org/
                OS: All
            Status: NEW
          Severity: normal
          Priority: P3
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: drug2004 at bk.ru

If a method has out contract it causes dmd segfault.

```
class Foo
{
    auto foo()
    in {}
    //out {} // uncomment it to get dmd segfault
    body{}
}

void main()
{
    auto foo = new Foo();
    foo.foo();
}
```

--


More information about the Digitalmars-d-bugs mailing list