]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
c++: Fix std dialect hint for std::to_address [PR107800]
authorJonathan Wakely <jwakely@redhat.com>
Tue, 21 May 2024 12:16:33 +0000 (13:16 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Tue, 21 May 2024 20:59:21 +0000 (21:59 +0100)
The correct dialect for std::to_address is cxx20 not cxx11.

gcc/cp/ChangeLog:

PR libstdc++/107800
* cxxapi-data.csv <to_address>: Change dialect to cxx20.
* std-name-hint.gperf: Regenerate.
* std-name-hint.h: Regenerate.

gcc/cp/cxxapi-data.csv
gcc/cp/std-name-hint.gperf
gcc/cp/std-name-hint.h

index 75ee1b3ac92b21df2869115b7230ca3278e55b68..1cbf774acd7caaf8eaa5c944957018e22d54eea5 100644 (file)
 # unimplemented <mdspan>,default_accessor,1,no
 # unimplemented <mdspan>,mdspan,1,cxx23
 <memory>,pointer_traits,1,cxx11
-<memory>,to_address,1,cxx11
+<memory>,to_address,1,cxx20
 <memory>,align,1,cxx11
 <memory>,assume_aligned,1,cxx20
 <memory>,allocator_arg_t,1,cxx11
index b26bc6949bae10de9458d24d270e6b372e8b0de4..4fb23da40a64f5c1654da5b7592341d79f276533 100644 (file)
@@ -220,7 +220,7 @@ pointer_traits, "<memory>", cxx11
 reinterpret_pointer_cast, "<memory>", cxx17
 shared_ptr, "<memory>", cxx11
 static_pointer_cast, "<memory>", cxx11
-to_address, "<memory>", cxx11
+to_address, "<memory>", cxx20
 uninitialized_construct_using_allocator, "<memory>", cxx20
 unique_ptr, "<memory>", cxx11
 uses_allocator, "<memory>", cxx11
index e37d769c1cee34cc549b1237060ae57d8555b1b9..231689355d1da5410af34e2e5937a8e2b90b12c8 100644 (file)
@@ -291,7 +291,7 @@ std_name_hint_lookup::find (const char *str, size_t len)
 #line 472 "std-name-hint.gperf"
       {"variant_npos", "<variant>", cxx17},
 #line 223 "std-name-hint.gperf"
-      {"to_address", "<memory>", cxx11},
+      {"to_address", "<memory>", cxx20},
 #line 460 "std-name-hint.gperf"
       {"pair", "<utility>", cxx98},
 #line 269 "std-name-hint.gperf"