https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103887
Bug ID: 103887
Summary: -fsanitize=shift affects constness of an expression
Product: gcc
Version: 11.2.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Compo
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103887
--- Comment #2 from Michal Kubecek ---
(In reply to Andrew Pinski from comment #1)
> The problem is rather __builtin_constant_p not resolving to a constant. This
> is a dup of bug 79482.
There is a difference: your modified testcase fails to co
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103887
--- Comment #4 from Michal Kubecek ---
It's probably even more complicated as
#define ASSERT_ON_COMPILE_SELECTOR_SIZE(expr) \
_Static_assert( \
__builtin_choose_expr(__builtin_constant_p(exp