This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/80635] std::optional and bogus -Wmaybe-uninitialized warning
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 05 May 2017 14:22:45 +0000
- Subject: [Bug c++/80635] std::optional and bogus -Wmaybe-uninitialized warning
- Auto-submitted: auto-generated
- References: <bug-80635-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80635
--- Comment #8 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Something like __builtin_unreachable() to say "trust me" would be nice, but I
can't think how to do it. So maybe we just want to use a #pragma around the
std::optional destructor to suppress this warning.