]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Prevent unwanted ADL in std::to_array [PR111512]
authorJonathan Wakely <jwakely@redhat.com>
Thu, 21 Sep 2023 08:14:57 +0000 (09:14 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Tue, 26 Sep 2023 22:56:13 +0000 (23:56 +0100)
commit97a33ab114187e7c6cd6c6c0f06cd8225e8aeef5
treeca3e30e27182fedf23f53b90b3b5aac7dadbf276
parent4f9c509ed534a5fb1933ee5bf79a4c868f791c8c
libstdc++: Prevent unwanted ADL in std::to_array [PR111512]

Qualify the calls to the __to_array helper to prevent ADL, so we don't
try to complete associated classes.

libstdc++-v3/ChangeLog:

PR libstdc++/111511
PR c++/111512
* include/std/array (to_array): Qualify calls to __to_array.
* testsuite/23_containers/array/creation/111512.cc: New test.

(cherry picked from commit 77cf3773021b0a20d89623e09d620747a05588ec)
libstdc++-v3/include/std/array
libstdc++-v3/testsuite/23_containers/array/creation/111512.cc [new file with mode: 0644]