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.

Reply via email to