[Bug libstdc++/107206] Bogus -Wuninitialized in std::optional

2022-10-11 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107206 Richard Biener changed: What|Removed |Added CC||jamborm at gcc dot gnu.org ---

[Bug libstdc++/107206] Bogus -Wuninitialized in std::optional

2022-10-11 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107206 --- Comment #2 from Jonathan Wakely --- The aggregate copy is intended, because std::optional must have a trivial copy constructor if T has a trivial copy constructor. There should be no uninitialized value, because the std::optional's storage

[Bug libstdc++/107206] Bogus -Wuninitialized in std::optional

2022-10-11 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107206 Richard Biener changed: What|Removed |Added Component|c++ |libstdc++