https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123615 Bug 123615 depends on bug 125764, which changed state.
Bug 125764 Summary: can_substitute returns false for function types with reference return type https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125764 What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED
