[Bug libstdc++/104098] [11/12 Regression] bits/stl_iterator.h fails to compile for __cplusplus > 201703L and with __cpp_concepts undefined
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Jan 18 16:32:19 GMT 2022
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104098
--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jonathan Wakely <redi@gcc.gnu.org>:
https://gcc.gnu.org/g:e13e95bd274148a825bc9527efac49e99080dd64
commit r12-6692-ge13e95bd274148a825bc9527efac49e99080dd64
Author: Jonathan Wakely <jwakely@redhat.com>
Date: Tue Jan 18 15:34:24 2022 +0000
libstdc++: Use __cpp_lib_concepts in std::reverse_iterator [PR104098]
We should not assume that std::iter_value_t etc. are defined
unconditionally for C++20 mode.
libstdc++-v3/ChangeLog:
PR libstdc++/104098
* include/bits/stl_iterator.h (reverse_iterator): Check
__cpp_lib_concepts instead of __cplusplus.
More information about the Gcc-bugs
mailing list