https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102876
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Note, for comdat variables (inline vars, variable templates) we need to be careful, see PR99456 ABI discussions whether it is ok to change whether something is initialized dynamically or statically. When the function isn't constexpr though, trying to evaluate it as non-manifestly constant evaluated expression will fail though, so we'd need some even less pedantic constant expression evaluation mode that would handle inline non-constexpr functions as if they were constexpr.