https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80635
--- Comment #33 from Jason Merrill <jason at gcc dot gnu.org> --- (In reply to Pedro Alves from comment #32) > Usually maybe-uninit warnings point to false positives involving scalars, > and initializing them is practically free. But here the size of T may be > significant, which could lead to e.g., calling memset in loops. Using optional with a large T sounds like a strange choice to me, since it means you have to allocate the space even if you don't have a value.