https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99692
--- Comment #7 from Jonathan Wakely <redi at gcc dot gnu.org> --- I mean that the test used in the library code is doing the right thing. I haven't investigated whether the compiler is not handling the lookup correctly, but I don't think there's a libstdc++ bug here.