https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63860
Bug ID: 63860 Summary: Ill-formed std::pair::swap implementation? Product: gcc Version: 4.8.3 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: hjl.tools at gmail dot com According to http://llvm.org/bugs/show_bug.cgi?id=21565 and http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20141110/118441.html std::pair::swap implementation in libstdc++ in GCC 4.8.3 is ill-formed. I checked trunk and it isn't changed. Is libstdc++ wrong here?