https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98927
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
As we use inline functions, it is required to diagnose this only after
inlining, and historically we've been doing that during expansion, so that even
if a constant materializes through optimizations it is accepted.
I think not diagnosing this when the loop is unrolled and only constants make
it in is just fine.