aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2020-03-18 12:55:29 +0000
committerJonathan Wakely <jwakely@redhat.com>2020-03-18 12:55:29 +0000
commit07522ae90b5bae2ca95b64f3a4de60bea0cc0567 (patch)
tree95a4d7b13262a92a762c606e5f8f117f422d4c26 /gcc
parentdbde9e2d5952ff1c50c4aeaaabb23cebafb50759 (diff)
downloadgcc-07522ae90b5bae2ca95b64f3a4de60bea0cc0567.zip
gcc-07522ae90b5bae2ca95b64f3a4de60bea0cc0567.tar.gz
gcc-07522ae90b5bae2ca95b64f3a4de60bea0cc0567.tar.bz2
libstdc++: Fix compilation with released versions of Clang
Clang 9 supports C++20 via -std=c++2a but doesn't support Concepts, so several of the new additions related to the Ranges library fail to compile with -std=c++2a. The new definition of iterator_traits and the definition of default_sentinel_t are guarded by __cpp_lib_concepts, so check that in addition to __cplusplus > 201703L. * include/bits/stl_algobase.h (__lexicographical_compare_aux): Check __cpp_lib_concepts before using iter_reference_t. * include/bits/stream_iterator.h (istream_iterator): Check __cpp_lib_concepts before using default_sentinel_t. * include/bits/streambuf_iterator.h (istreambuf_iterator): Likewise.
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions