https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80335
Marc Glisse <glisse at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #2 from Marc Glisse <glisse at gcc dot gnu.org> --- Looks like this is fixed. Although the limitations discussed are present: optional<array<double,1024>> copies the whole array even if it is never engaged.