https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65861
--- Comment #7 from Jack Howarth <howarth.at.gcc at gmail dot com> --- (In reply to Jonathan Wakely from comment #6) > And even if they don't read the libstdc++ documentation, std::search doesn't > work with input iterators, that's always been true: > > https://www.sgi.com/tech/stl/search.html > http://en.cppreference.com/w/cpp/algorithm/search > > The code is simply broken and should be fixed. Is there e reason for gcc not to detect such wrong code issues by default? Perhaps gcc 6 should finally default to --enable-concept-checks.