https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102801
--- Comment #3 from Calin Culianu <calin.culianu at bitcoincashnode dot org> --- @Eric Gallager : Initially I came across that bug and it looked eerily similar to this one. I am not a gcc dev, just a user of gcc. No idea.. but yeah looks like in some situations certainly gcc has trouble with this uninitialized warning when std::optional enters the picture...