https://issues.dlang.org/show_bug.cgi?id=14596
Issue ID: 14596
Summary: Error: e2ir: cannot cast malloc(42u) of type void* to
type char[]
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: major
Priority: P1
Component: DMD
Assignee: [email protected]
Reporter: [email protected]
I believe the error is an ICE and should be fixed, or, at least, the internal
filename should not be shown.
dmd 2.067.1
Code:
----
void main() {
import core.stdc.stdlib : malloc;
auto ptr = cast(char[]) malloc(42);
}
----
--