[Issue 5479] Can't take address of struct literal inside array initializer
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Mar 19 15:15:55 UTC 2021
https://issues.dlang.org/show_bug.cgi?id=5479
ag0aep6g <ag0aep6g at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
CC| |ag0aep6g at gmail.com
Resolution|FIXED |---
--- Comment #2 from ag0aep6g <ag0aep6g at gmail.com> ---
(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.
--
More information about the Digitalmars-d-bugs
mailing list