This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug bootstrap/69464] [6 Regression]: bootstrap failure on CentOS 5.11: error: âswapâ is not a member of âstdâ
- From: "matz at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 25 Jan 2016 13:08:56 +0000
- Subject: [Bug bootstrap/69464] [6 Regression]: bootstrap failure on CentOS 5.11: error: âswapâ is not a member of âstdâ
- Auto-submitted: auto-generated
- References: <bug-69464-4 at http dot gcc dot gnu dot org/bugzilla/>
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.