https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54366 Bug 54366 depends on bug 98283, which changed state.
Bug 98283 Summary: decltype(auto) may deduce a static data member to wrong type in a template https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98283 What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED