[Bug c++/70495] false warning: comparison between signed and unsigned integer expressions

2021-08-13 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70495 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |7.0 Status|NEW

[Bug c++/70495] false warning: comparison between signed and unsigned integer expressions

2021-08-13 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70495 --- Comment #8 from Andrew Pinski --- Seems fixed in GCC 7+. I cannot figure out what patch would have changed this though.

[Bug c++/70495] false warning: comparison between signed and unsigned integer expressions

2016-04-26 Thread andras.szilard at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70495 András changed: What|Removed |Added Version|5.3.0 |6.1.0 --- Comment #7 from András --- Presents

[Bug c++/70495] false warning: comparison between signed and unsigned integer expressions

2016-04-01 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70495 --- Comment #6 from Jonathan Wakely --- http://en.cppreference.com/w/cpp/language/implicit_cast#Integral_promotion

[Bug c++/70495] false warning: comparison between signed and unsigned integer expressions

2016-04-01 Thread andras.szilard at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70495 --- Comment #5 from András --- @Jonathan: could you, please, give me a link, which explains why this "conversion to int" takes place (where it comes from)? Thanks!

[Bug c++/70495] false warning: comparison between signed and unsigned integer expressions

2016-04-01 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70495 --- Comment #4 from Jonathan Wakely --- (In reply to András from comment #3) > > b+b has type int > Note: this does not give the warning. You can see the linked example for > more details. I know, but b+b+b adds b to an int and still produces an

[Bug c++/70495] false warning: comparison between signed and unsigned integer expressions

2016-04-01 Thread andras.szilard at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70495 --- Comment #3 from András --- > b+b has type int Note: this does not give the warning. You can see the linked example for more details.

[Bug c++/70495] false warning: comparison between signed and unsigned integer expressions

2016-04-01 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70495 Richard Biener changed: What|Removed |Added Keywords||diagnostic Status|UNCONFIRM

[Bug c++/70495] false warning: comparison between signed and unsigned integer expressions

2016-04-01 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70495 --- Comment #1 from Jonathan Wakely --- b+b has type int