https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55004 Bug 55004 depends on bug 87497, which changed state.
Bug 87497 Summary: constexprs involving non-literal const variables are incorrectly accepted https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87497 What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED