March 16, 2023 [Issue 23785] New: [REG ] `-preview=in` crash when passing `enum` value at CTFE | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=23785 Issue ID: 23785 Summary: [REG ] `-preview=in` crash when passing `enum` value at CTFE Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: regression Priority: P1 Component: dmd Assignee: nobody@puremagic.com Reporter: pro.mathias.lang@gmail.com ``` struct BigInt { size_t[4] data; } BigInt plusZero(in BigInt n) { return n; } void testCTFEICE () @safe pure { enum BigInt test1 = BigInt.init; enum BigInt test2 = plusZero(test1); } ``` Triggers an ICE as of today. -- |
Copyright © 1999-2021 by the D Language Foundation