[Bug c++/97145] Sanitizer pointer-subtract breaks constexpr functions subtracting pointers

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Sep 21 12:12:15 GMT 2020


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
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.

More information about the Gcc-bugs mailing list