[Bug c++/96675] [10 Regression] tautological-compare warning emitted for NTTP bitwise comparison

2021-01-05 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96675 Marek Polacek changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug c++/96675] [10 Regression] tautological-compare warning emitted for NTTP bitwise comparison

2021-01-05 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96675 --- Comment #7 from CVS Commits --- The releases/gcc-10 branch has been updated by Marek Polacek : https://gcc.gnu.org/g:6fd09a6e8bcadaa69e1fdca09263990cc1c5245f commit r10-9208-g6fd09a6e8bcadaa69e1fdca09263990cc1c5245f Author: Marek Polacek D

[Bug c++/96675] [10 Regression] tautological-compare warning emitted for NTTP bitwise comparison

2020-12-04 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96675 --- Comment #6 from Marek Polacek --- (In reply to Giorgio Audrito from comment #5) > I add that a very similar problem happens with -Wtype-limits, I found this > minimal example: > > template > struct foo { > bool bar(unsigned y) { >

[Bug c++/96675] [10 Regression] tautological-compare warning emitted for NTTP bitwise comparison

2020-12-04 Thread giorgio.audrito at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96675 --- Comment #5 from Giorgio Audrito --- I add that a very similar problem happens with -Wtype-limits, I found this minimal example: template struct foo { bool bar(unsigned y) { return y < x; } }; int main() { return foo<0>{

[Bug c++/96675] [10 Regression] tautological-compare warning emitted for NTTP bitwise comparison

2020-12-04 Thread giorgio.audrito at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96675 Giorgio Audrito changed: What|Removed |Added CC||giorgio.audrito at gmail dot com ---

[Bug c++/96675] [10 Regression] tautological-compare warning emitted for NTTP bitwise comparison

2020-10-28 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96675 Marek Polacek changed: What|Removed |Added Summary|[10/11 Regression] |[10 Regression] |tauto