aboutsummaryrefslogtreecommitdiff
path: root/gcc/gcc.c
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2021-04-28 15:56:04 +0100
committerJonathan Wakely <jwakely@redhat.com>2021-04-28 15:56:04 +0100
commit3da80ed7efd582575e7850a403ce693ec882d087 (patch)
tree652de1d7ed2a41f653b5e3d54b5e96460a8e2545 /gcc/gcc.c
parent43a35b26e2fd2fab9c0c3ebac67e3a6c439daef4 (diff)
downloadgcc-3da80ed7efd582575e7850a403ce693ec882d087.zip
gcc-3da80ed7efd582575e7850a403ce693ec882d087.tar.gz
gcc-3da80ed7efd582575e7850a403ce693ec882d087.tar.bz2
libstdc++: Define __cpp_lib_constexpr_string macro
As noted in r11-1339-gb6ab9ecd550227684643b41e9e33a4d3466724d8 we define a non-standard __cpp_lib_constexpr_char_traits feature test macro to indicate support for P0426R1 and P1032R1. At some point last year the __cpp_lib_constexpr_string macro was retconned to indicate support for those papers. This adds the new macro (which we didn't previously define, because it referred to P0980R1 "Making std::string constexpr" which we don't support). libstdc++-v3/ChangeLog: * include/bits/basic_string.h (__cpp_lib_constexpr_string): Define. * include/std/version (__cpp_lib_constexpr_string): Define. * testsuite/21_strings/char_traits/requirements/constexpr_functions_c++17.cc: Check for __cpp_lib_constexpr_string. * testsuite/21_strings/char_traits/requirements/constexpr_functions_c++20.cc: Likewise. * testsuite/21_strings/char_traits/requirements/version.cc: New test.
Diffstat (limited to 'gcc/gcc.c')
0 files changed, 0 insertions, 0 deletions