This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug bootstrap/69464] [6 Regression]: bootstrap failure on CentOS 5.11: error: âswapâ is not a member of âstdâ


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

--- Comment #6 from Michael Matz <matz at gcc dot gnu.org> ---
(In reply to UroÅ Bizjak from comment #5)
> (In reply to Jakub Jelinek from comment #3)
> > That means we need #define USE_ALGORITHM before #include "system.h" in
> > genmodes.c with a comment.
> 
> But std::swap is used in many places. IMO, a configure check what to include
> would be the best solution here.

Indeed.  Starting with g++ 4.3 it's available from <utility> (via stl_pair and
stl_move).  We really don't want to include <algorithm> if at all possible.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]