[Bug libstdc++/65861] libstdc++ is silently generating wrong code when its std::search is given an input iterator
howarth.at.gcc at gmail dot com
gcc-bugzilla@gcc.gnu.org
Thu Apr 23 15:16:00 GMT 2015
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.
More information about the Gcc-bugs
mailing list