https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80787
--- Comment #1 from Marc Glisse <glisse at gcc dot gnu.org> --- This is a DUP of many other PRs, -fno-tree-ccp -fno-tree-vrp gives you the warning, but otherwise gcc optimises cond?value:undef to value.