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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Sep 13 00:03:47 UTC 2024


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

Dennis <dkorpel at live.nl> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dkorpel at live.nl

--- Comment #8 from Dennis <dkorpel at live.nl> ---
Reduces to:

```D
void main() @safe
{
    foreach(ref e; new int[1])
        int* f = &e;
}
```

--


More information about the Digitalmars-d-bugs mailing list