[Issue 23945] ICE caused by std.sumtype

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue May 30 12:29:26 UTC 2023


https://issues.dlang.org/show_bug.cgi?id=23945

--- Comment #2 from FeepingCreature <default_357-line at yahoo.de> ---
As a workaround, sticking this code into AnnotationValue in the original code:

    size_t toHash() const
    {
        return hashOf(annotation_value);
    }

also makes it compile. I think because the hashOf is hidden in a method body,
the sema doesn't have to recurse immediately from AnnotationValue into
Annotation, which breaks the loop.

--


More information about the Digitalmars-d-bugs mailing list