https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55004 Bug 55004 depends on bug 38377, which changed state.
Bug 38377 Summary: __builtin_constant_p(t) ? t : 1 is not considered a constant integer expression https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38377 What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED