[Bug libstdc++/78830] std::prev accepts ForwardIterator-s

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Dec 16 10:46:00 GMT 2016


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78830

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Why is it ill-formed?

By my reading it's undefined, which does mean we can reject it anyway, but I
don't see anything to make it ill-formed that would require rejecting it
unconditionally.


More information about the Gcc-bugs mailing list