[Bug c++/80641] Warning with std::vector resize in loop

2017-05-05 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80641 Martin Sebor changed: What|Removed |Added Keywords||diagnostic, |

[Bug c++/80641] Warning with std::vector resize in loop

2017-05-05 Thread glisse at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80641 --- Comment #1 from Marc Glisse --- If I (very hackishly) enable A + CST CMP A -> A CMP' CST' without single_use, and (unsigned long)x==0 --> x==0, we simplify quite a bit more and the warning disappears. (and there would still be some