https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88816
--- Comment #3 from Ivan Skytte Jørgensen ---
Ohhh...! Thank you for the explanation.
That was not at all obvious to me. It would be great if GCC detected it and
warned "brace-initializing a std:vector with a single std::vector may not do
what y
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88816
--- Comment #2 from Jonathan Wakely ---
(In reply to Jonathan Wakely from comment #1)
> See PR 85577 (and PR 86135).
>
> Use parens instead of braces and it works:
>
> new(&u.array_elements) array_type(a);
Basically, if you're trying to ca
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88816
Jonathan Wakely changed:
What|Removed |Added
Status|UNCONFIRMED |RESOLVED
Resolution|---