[Issue 18469] New: [REG 2.079-b1] Segfault when trying to get type of __dtor.opCall

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Feb 19 13:29:28 UTC 2018


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

          Issue ID: 18469
           Summary: [REG 2.079-b1] Segfault when trying to get type of
                    __dtor.opCall
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: regression
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: b2.temp at gmx.com

this crash the compiler:

```
class Bar
{
    ~this(){}
    this(){alias T = typeof(Bar.__dtor.opCall);}
}

void main() {}
```

instead of "Error: no property 'opCall' for type 'void'", like previously.
Nonsense test case is because it is reduced from an usage of
std.traits.isCallable.

--


More information about the Digitalmars-d-bugs mailing list