https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103755
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #52024|0 |1 is obsolete| | --- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> --- Created attachment 52025 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52025&action=edit Alternative implementation v2 The diagnostic regression is easy to fix with a static assertion before calling __try_use_facet.