https://gcc.gnu.org/bugzilla/show_bug.cgi?id=24666 Bug 24666 depends on bug 102033, which changed state.
Bug 102033 Summary: template function signature incorrectly drops top-level cv-qualifiers causing template specialization failing to match https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102033 What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED