[Bug c++/80635] std::optional and bogus -Wmaybe-uninitialized warning

palves at redhat dot com gcc-bugzilla@gcc.gnu.org
Tue Dec 17 19:40:00 GMT 2019


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80635

--- Comment #32 from Pedro Alves <palves at redhat dot com> ---
Right, the potentially-sensitive aspect is what I mean to stress here.  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.


More information about the Gcc-bugs mailing list