[Issue 23164] [REG 2.097] Infinite loop on assertion failure + DMD moves struct with copy constructor

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Dec 22 08:11:36 UTC 2022


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

--- Comment #6 from Walter Bright <bugzilla at digitalmars.com> ---
(In reply to Iain Buclaw from comment #5)
>     // GDC and LDC forces 'auto ref' to be 'ref', even when the
>     // front-end decides to drop the 'ref' from the signature.
>     ref std_string opAssign()(const auto ref std_string rhs)

Do you mean it does this for all functions, or just for opAssign? That
regardless of `ref` or `auto ref` or ``, it passes by `ref`?

--


More information about the Digitalmars-d-bugs mailing list