https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65861
--- Comment #4 from Jack Howarth <howarth.at.gcc at gmail dot com> --- (In reply to Jonathan Wakely from comment #2) > This is user error, std::search() requires forward iterators and the library > is not required to diagnose it. Defining _GLIBCXX_CONCEPT_CHECKS causes it > to be rejected. Also, is there a simple fix to the test case which avoids the user error or does the code have to be rewritten in a major way.