https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92507
Michał Mirosław changed:
What|Removed |Added
CC||mirq-gccboogs at rere dot
qmqm.pl
---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92507
Eric Gallager changed:
What|Removed |Added
CC||egallager at gcc dot gnu.org
S
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92507
--- Comment #2 from David Brown ---
I am aware that "n" here is not a constant integer expression - it should not
need to be for a compiler warning. What the compiler needs in order to
eliminate the false positive is a knowledge of the ranges of
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92507
--- Comment #1 from Andrew Pinski ---
So there are two things here. First -Wsign-compare does not understand flow
control at all so it only looks at the statement/expression at hand (i < n).
Second n is not a constant integer expression in C (I