[Issue 5479] Can't take address of struct literal inside array initializer
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Aug 15 14:07:40 UTC 2022
https://issues.dlang.org/show_bug.cgi?id=5479
--- Comment #3 from RazvanN <razvan.nitu1305 at gmail.com> ---
(In reply to ag0aep6g from comment #2)
> (In reply to RazvanN from comment #1)
> > This compiles successfully in D2.
>
> Uh, no it doesn't? DMD v2.096.0 prints: "Error: cannot use non-constant CTFE
> pointer in an initializer `&[Identifier("someid")][0]`". Reopening.
Argh, I omitted the last line of the bug report when copy pasting...
--
More information about the Digitalmars-d-bugs
mailing list