]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Qualify calls to debug mode helpers
authorJonathan Wakely <jwakely@redhat.com>
Fri, 23 Jun 2023 12:50:01 +0000 (13:50 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Mon, 26 Jun 2023 16:43:22 +0000 (17:43 +0100)
commitfa98bc4270dcb4ec78b5b1c0f4c067094c84bae6
tree485766500a0531ece27206eee3c5e9b841267f97
parenta29df49b7d8332f068926a45c950510ceeb79f4c
libstdc++: Qualify calls to debug mode helpers

These functions should be qualified to disable unwanted ADL.

The overload of __check_singular_aux for safe iterators was previously
being found by ADL, because it wasn't declared before __check_singular.
Add a declaration so that it can be found by qualified lookup.

libstdc++-v3/ChangeLog:

* include/debug/helper_functions.h (__get_distance)
(__check_singular, __valid_range_aux, __valid_range): Qualify
calls to disable ADL.
(__check_singular_aux(const _Safe_iterator_base*)): Declare
overload that was previously found via ADL.
libstdc++-v3/include/debug/helper_functions.h