https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80550

--- Comment #1 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
Looks like a dup of PR66880.

richi said in that bug:

»It would be better to make the C FE reject this as constant expression which
invokes undefined behavior.

IMHO -fsanitize should never sanitize any constant expression - the FE will
reject non-constant ones anyway.«

I agree. No compiler (icc, clang, gcc) warns about it.

Reply via email to