http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53277
--- Comment #12 from Marc Glisse <glisse at gcc dot gnu.org> 2012-05-09 13:11:01 UTC --- (In reply to comment #10) > This is PR51294. Looks different. Here the compiler complains about casting 0 to size_t. > And there is PR52617. That one is not a bug, unless you want to do the opposite of what the OP asked and use constant propagation to remove the current warning as well.