[Issue 24634] CTFE on static arrays with StructInitializers fails to compile
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Jun 27 17:36:00 UTC 2024
https://issues.dlang.org/show_bug.cgi?id=24634
--- Comment #4 from Tom Kral <mail at tomaskral.sk> ---
(In reply to basile-z from comment #2)
> Sorry I meant to write
>
> ```
> auto A[1] as0 = [{0}];
> auto A[1] as1 = as0.update();
> ```
Hmm, I find it rather surprising that StructInitializer would not work in this
case. Is there a good reason for that?
Thanks for the workaround by the way, it did the trick.
--
More information about the Digitalmars-d-bugs
mailing list