[Issue 17468] New: Internal assertion fails during CTFE
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Sun Jun 4 10:07:05 PDT 2017
https://issues.dlang.org/show_bug.cgi?id=17468
Issue ID: 17468
Summary: Internal assertion fails during CTFE
Product: D
Version: D2
Hardware: x86
OS: All
Status: NEW
Severity: normal
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: andrei at erdani.com
To repro:
struct S {
immutable char* path;
@disable this();
this(immutable(char)* path) {
this.path = path;
}
}
immutable S CONST_S = S("/tmp".ptr);
Compiling this yields:
core.exception.AssertError at ddmd/ctfeexpr.d(413): Assertion failure
followed by a stack trace.
--
More information about the Digitalmars-d-bugs
mailing list