This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/65861] libstdc++ is silently generating wrong code when its std::search is given an input iterator
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 23 Apr 2015 15:04:44 +0000
- Subject: [Bug libstdc++/65861] libstdc++ is silently generating wrong code when its std::search is given an input iterator
- Auto-submitted: auto-generated
- References: <bug-65861-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65861
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
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.