[Issue 24754] cannot take address of a member array in a ref foreach

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Sep 9 06:56:10 UTC 2024


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

Richard (Rikki) Andrew Cattermole <alphaglosined at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |accepts-invalid, safe
           Priority|P1                          |P3
             Status|RESOLVED                    |REOPENED
                 CC|                            |alphaglosined at gmail.com
         Resolution|INVALID                     |---

--- Comment #2 from Richard (Rikki) Andrew Cattermole <alphaglosined at gmail.com> ---
This might be a bug, DIP1000 should be catching this I think.

I checked, and with it turned on it did not catch it.

But yes, a pointer is allowed in @safe functions, including taking a pointer of
currently.

--


More information about the Digitalmars-d-bugs mailing list