[Issue 13688] 'in' expression for AA not detected as GC usage

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Dec 8 16:51:16 UTC 2021


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

Stanislav Blinov <stanislav.blinov at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |stanislav.blinov at gmail.com
           See Also|                            |https://issues.dlang.org/sh
                   |                            |ow_bug.cgi?id=19422

--- Comment #1 from Stanislav Blinov <stanislav.blinov at gmail.com> ---
If we go by the spec: https://dlang.org/spec/garbage.html#op_involving_gc

it explicitly lists AA lookups as GC operations. That being said, AAs outright
swallow attributes (see related issue). Regardless, if the specification is
correct with regards to GC usage, in this case at the very least `func`
shouldn't compile.

--


More information about the Digitalmars-d-bugs mailing list