[Bug libstdc++/127005] Wmaybe-uninitialized with optional<lock_guard<mutex>>

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Aug 25 19:22:19 GMT 2026


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

Drea Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
   Target Milestone|---                         |17.0
             Status|ASSIGNED                    |RESOLVED
      Known to fail|                            |7.1.0

--- Comment #8 from Drea Pinski <pinskia at gcc dot gnu.org> ---
Fixed on the trunk. It does not look like a regression. the warning has been
there since optional was added in GCC 7.1.0. So closing as fixed.


More information about the Gcc-bugs mailing list