https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97145
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> --- No, we just need to ignore the sanitization builtins during constant evaluation. We already do for some of them. We can ignore sanitization only in consteval functions, constexpr just means that the compiler attempts to evaluate it at compile time if called in constant expression contexts or with constant arguments, but it is still emitted out of line and can be called at runtime.