https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106275
--- Comment #7 from Jonathan Wakely <redi at gcc dot gnu.org> --- You can specialize the std::__is_fast_hash trait for your custom hash if you need to. Be aware that's an ABI change though (the container will cache the hash code in each node if the hash function is "not fast").