[Bug tree-optimization/105749] Bogus maybe-unitialized when using std::optional, regex and sstream

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Jun 22 20:24:37 GMT 2022


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

           What    |Removed                     |Added
      Known to fail|                            |10.3.0

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Note in GCC 10.3.0 we got:
<source>: In function 'void t(const string&)':
<source>:13:51: warning: 'port' may be used uninitialized in this function
   13 |         reqb << "Host: " << port.value_or(443) << "\r\n";
      |                                                   ^~~~~~

More information about the Gcc-bugs mailing list