public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/101659] New: _GLIBCXX_DEBUG mode for std::optional ?
@ 2021-07-28 20:55 simon.marchi at polymtl dot ca
  2021-07-29  6:21 ` [Bug libstdc++/101659] " rguenth at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: simon.marchi at polymtl dot ca @ 2021-07-28 20:55 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 101659
           Summary: _GLIBCXX_DEBUG mode for std::optional ?
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: simon.marchi at polymtl dot ca
  Target Milestone: ---

There doesn't seem to be a version of std::optional with debug runtime checks
enabled with _GLIBCXX_DEBUG.  It seems to me like it would be useful, to catch
"dereferencing" the optional when it doesn't contain a value.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-07-29 12:13 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-28 20:55 [Bug c++/101659] New: _GLIBCXX_DEBUG mode for std::optional ? simon.marchi at polymtl dot ca
2021-07-29  6:21 ` [Bug libstdc++/101659] " rguenth at gcc dot gnu.org
2021-07-29  9:16 ` glisse at gcc dot gnu.org
2021-07-29 12:08 ` simon.marchi at polymtl dot ca
2021-07-29 12:12 ` redi at gcc dot gnu.org
2021-07-29 12:13 ` redi at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).