https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114536
--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> --- (In reply to Fedor Chelnokov from comment #2) > May be just fail constant evaluation then instead of evaluating it to 0? Hmm, yes, it should fail to produce a constant expression.