[Issue 22010] Link error with mutually recursive SumType / struct with opEquals

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jun 9 12:32:57 UTC 2021


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

--- Comment #2 from Vladimir Panteleev <dlang-bugzilla at thecybershadow.net> ---
(In reply to João Lourenço from comment #1)
> I think this is because it uses `match` internally.

A link error like this should never happen no matter what the code does (unless
it's something intentional like an extern declaration with no definition, of
course.)

> As a workaround fix, removing `const` from `opEquals` solves your issue.

Thanks but this is a reduced example meant to illustrate the compiler bug.

--


More information about the Digitalmars-d-bugs mailing list