-
-
Notifications
You must be signed in to change notification settings - Fork 668
Open
Labels
Compiler:Backendglue code, optimizer, code generationglue code, optimizer, code generationSeverity:Crashbuilt program crashesbuilt program crashes
Description
import std.datetime.date : Date;
import std.typecons : Nullable;
struct A(T) {
Nullable!T a;
}
alias B = A!Date;
template C() {
B b;
}
struct D {
struct E {
mixin C;
}
}
D dd() {
D d;
enum g = Date();
D.E[] e;
e ~= D.E(B(
f == g ? Nullable!Date() : f,
),
);
return d;
}
Nullable!Date f() {
return typeof(return)();
}Might be a regression - this compiles in 2.099.
Metadata
Metadata
Assignees
Labels
Compiler:Backendglue code, optimizer, code generationglue code, optimizer, code generationSeverity:Crashbuilt program crashesbuilt program crashes