public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/103853] New: std::forward_list::merge should check if __list != this
@ 2021-12-28 20:43 pavel.kryukov at phystech dot edu
  2021-12-29 10:12 ` [Bug libstdc++/103853] " redi at gcc dot gnu.org
                   ` (13 more replies)
  0 siblings, 14 replies; 15+ messages in thread
From: pavel.kryukov at phystech dot edu @ 2021-12-28 20:43 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 103853
           Summary: std::forward_list::merge should check if __list !=
                    this
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: pavel.kryukov at phystech dot edu
  Target Milestone: ---

Created attachment 52080
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52080&action=edit
check if __list==this in std::forward_list::merge

C++ standard does not require 'do nothing' if std::forward_list::merge argument
equals to 'this', however it does not say 'undefined behavior' or 'infinite
loop' too.

I've attached my patch to fix and test it, but since I'm not an experienced GCC
contributor, I don't know how to run the tests. Following instructions on
CONTRIBUTING page builds whole GCC ending with some problems with my machine. I
would be grateful if you tell how I can test only libstdc++.

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

end of thread, other threads:[~2022-05-09 19:45 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-28 20:43 [Bug libstdc++/103853] New: std::forward_list::merge should check if __list != this pavel.kryukov at phystech dot edu
2021-12-29 10:12 ` [Bug libstdc++/103853] " redi at gcc dot gnu.org
2021-12-29 10:22 ` redi at gcc dot gnu.org
2022-01-05 10:06 ` redi at gcc dot gnu.org
2022-01-05 10:48 ` redi at gcc dot gnu.org
2022-01-05 14:40 ` pavel.kryukov at phystech dot edu
2022-01-05 14:47 ` redi at gcc dot gnu.org
2022-01-06 10:50 ` pavel.kryukov at phystech dot edu
2022-01-06 15:00 ` cvs-commit at gcc dot gnu.org
2022-01-06 15:39 ` redi at gcc dot gnu.org
2022-01-06 19:02 ` pavel.kryukov at phystech dot edu
2022-04-21 12:33 ` cvs-commit at gcc dot gnu.org
2022-04-26 13:11 ` cvs-commit at gcc dot gnu.org
2022-05-09 16:40 ` cvs-commit at gcc dot gnu.org
2022-05-09 19:45 ` 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).