public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/108118] New: std::weak_ptr lacks a self-usurp check on move
@ 2022-12-15  8:02 b.stanimirov at abv dot bg
  2022-12-15  8:41 ` [Bug libstdc++/108118] " pinskia at gcc dot gnu.org
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: b.stanimirov at abv dot bg @ 2022-12-15  8:02 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 108118
           Summary: std::weak_ptr lacks a self-usurp check on move
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: b.stanimirov at abv dot bg
  Target Milestone: ---

If one somehow move-assigns a weak pointer to itself, it gets destroyed.

Demo: https://godbolt.org/z/eWdhYMhYe

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

end of thread, other threads:[~2023-06-23 16:19 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-15  8:02 [Bug libstdc++/108118] New: std::weak_ptr lacks a self-usurp check on move b.stanimirov at abv dot bg
2022-12-15  8:41 ` [Bug libstdc++/108118] " pinskia at gcc dot gnu.org
2022-12-15  8:51 ` pinskia at gcc dot gnu.org
2022-12-15  8:53 ` pinskia at gcc dot gnu.org
2022-12-15  9:33 ` redi at gcc dot gnu.org
2022-12-15  9:36 ` redi at gcc dot gnu.org
2022-12-16 14:30 ` cvs-commit at gcc dot gnu.org
2023-01-06 12:07 ` redi at gcc dot gnu.org
2023-03-28 23:35 ` cvs-commit at gcc dot gnu.org
2023-05-16 12:50 ` cvs-commit at gcc dot gnu.org
2023-05-16 15:03 ` redi at gcc dot gnu.org
2023-06-23 16:13 ` cvs-commit at gcc dot gnu.org
2023-06-23 16:19 ` 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).