aboutsummaryrefslogtreecommitdiff
path: root/gcc/cse.c
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
commite5de406f9967ef4b0bbdbcbc0320869d2bf04558 (patch)
tree0734ee3c25b2a35b298eb7205bd098dfdabe8177 /gcc/cse.c
parent07522ae90b5bae2ca95b64f3a4de60bea0cc0567 (diff)
downloadgcc-e5de406f9967ef4b0bbdbcbc0320869d2bf04558.zip
gcc-e5de406f9967ef4b0bbdbcbc0320869d2bf04558.tar.gz
gcc-e5de406f9967ef4b0bbdbcbc0320869d2bf04558.tar.bz2
libstdc++ Fix compilation of <stop_token> with Clang
Clang 9 supports C++20 via -std=c++2a but doesn't support three-way comparisons, so <stop_token> fails to compile. When the compiler doesn't support default comparisons, this patch defines operator== and operator!= for the _Stop_state_ref class. That is enough for the header to be compiled with Clang. It allows operator== for stop_token and stop_source to work, but not operator!= because that isn't explicitly defined. * include/std/stop_token (stop_token::_Stop_state_ref): Define comparison operators explicitly if the compiler won't synthesize them.
Diffstat (limited to 'gcc/cse.c')
0 files changed, 0 insertions, 0 deletions