aboutsummaryrefslogtreecommitdiff
path: root/gcc/common
diff options
context:
space:
mode:
authorPatrick Palka <ppalka@redhat.com>2025-03-13 09:15:21 -0400
committerPatrick Palka <ppalka@redhat.com>2025-03-13 09:15:21 -0400
commit50359c0a44381edb6dbd9359ef2ebdadbcc3ed42 (patch)
tree72b6ddb8034e770f9ce8fcfb11d244ea510501b8 /gcc/common
parente5d54c33a257b3f7137f8408592df009dffb5711 (diff)
downloadgcc-50359c0a44381edb6dbd9359ef2ebdadbcc3ed42.zip
gcc-50359c0a44381edb6dbd9359ef2ebdadbcc3ed42.tar.gz
gcc-50359c0a44381edb6dbd9359ef2ebdadbcc3ed42.tar.bz2
libstdc++: Fix ref_view branch of views::as_const [PR119135]
Unlike for span<X> and empty_view<X>, the range_reference_t of ref_view<X> doesn't correspond to X. This patch fixes the ref_view branch of views::as_const to correctly query its underlying range type X. PR libstdc++/119135 libstdc++-v3/ChangeLog: * include/std/ranges: Include <utility>. (views::__detail::__is_ref_view): Replace with ... (views::__detail::__is_constable_ref_view): ... this. (views::_AsConst::operator()): Replace bogus use of element_type in the ref_view branch. * testsuite/std/ranges/adaptors/as_const/1.cc (test03): Extend test. Reviewed-by: Tomasz KamiƄski <tkaminsk@redhat.com> Reviewed-by: Jonathan Wakely <jwakely@redhat.com>
Diffstat (limited to 'gcc/common')
0 files changed, 0 insertions, 0 deletions