https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57255 Bug 57255 depends on bug 79504, which changed state.
Bug 79504 Summary: Overload resolution in trailing-return-type ignores reference qualifier and leads to recursive template instantiation. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79504 What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED