public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/57049] New: std::swap does self move assignment, which is illegal
@ 2013-04-23 15:46 tudorb at fb dot com
  2013-04-23 15:54 ` [Bug libstdc++/57049] " tudorb at fb dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: tudorb at fb dot com @ 2013-04-23 15:46 UTC (permalink / raw)
  To: gcc-bugs


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57049

             Bug #: 57049
           Summary: std::swap does self move assignment, which is illegal
    Classification: Unclassified
           Product: gcc
           Version: 4.7.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: tudorb@fb.com


Created attachment 29922
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29922
sample program that illustrates incorrect behavior

The default implementation of std::swap does self-move-assignment when calling
swap(a, a), which is illegal according to 17.6.4.9.


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

end of thread, other threads:[~2013-06-11  9:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-04-23 15:46 [Bug libstdc++/57049] New: std::swap does self move assignment, which is illegal tudorb at fb dot com
2013-04-23 15:54 ` [Bug libstdc++/57049] " tudorb at fb dot com
2013-04-25  9:55 ` daniel.kruegler at googlemail dot com
2013-06-11  9:00 ` paolo.carlini at oracle dot com

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).