[Bug tree-optimization/100197] g++ emits spurious Wstring-compare warnings on strcmp()

2022-07-28 Thread rajpal.gusain at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100197 --- Comment #2 from Rajpal Singh --- I also get similar error when one of the argument string is constant and I believe it's related. I tried it with g++ 11.2 'int strncmp(const char*, const char*, size_t)' of strings of length 1 and 6 and

[Bug tree-optimization/100197] g++ emits spurious Wstring-compare warnings on strcmp()

2021-04-22 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100197 Martin Sebor changed: What|Removed |Added Known to fail||10.2.0, 11.0