This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/65861] libstdc++ is silently generating wrong code when its std::search is given an input iterator


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]