[Issue 23945] ICE caused by std.sumtype
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue May 30 12:12:55 UTC 2023
https://issues.dlang.org/show_bug.cgi?id=23945
FeepingCreature <default_357-line at yahoo.de> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |default_357-line at yahoo.de
--- Comment #1 from FeepingCreature <default_357-line at yahoo.de> ---
Maybe reduction:
struct SumType()
{
ArrayValue value;
this(ArrayValue value)
{
this.value = value;
}
static if (__traits(compiles, hashOf(ElementValuePair.init)))
{
size_t toHash() { return 0; }
}
}
struct ArrayValue
{
ElementValue[] values;
}
struct ElementValuePair
{
ElementValue element_value;
}
alias ElementValue = SumType!();
====
Error: unknown, please file report on issues.dlang.org
I suspect something with hashOf and struct initialization order. I think this
may have been a few steps minified too far, but it's still spitting out "Error:
unknown", so...
--
More information about the Digitalmars-d-bugs
mailing list