https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96251
Iain Sandoe <iains at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|unassigned at gcc dot gnu.org |iains at gcc dot gnu.org --- Comment #6 from Iain Sandoe <iains at gcc dot gnu.org> --- Created attachment 50206 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50206&action=edit Patch for testing It seems most efficient to prevent the marking of the template as early as possible (plus I was not able to figure out how to make the instantiation process bail when it encountered a case that was not suitable for constexpr).