https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70181

Martin Sebor <msebor at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to fail|6.0                         |6.3.0, 7.3.0, 8.2.0, 9.0

--- Comment #3 from Martin Sebor <msebor at gcc dot gnu.org> ---
No change in GCC 9.0.  Clang 6.0 and later issue the following warnings:

pr70181.C:1:23: warning: self-comparison always evaluates to true
[-Wtautological-compare]
int f (int i) { if (i == i) return 1; return 0; }
                      ^
pr70181.C:4:19: warning: self-comparison always evaluates to true
[-Wtautological-compare]
const bool b0 = i == i;
                  ^
pr70181.C:4:12: warning: unused variable 'b0' [-Wunused-const-variable]
const bool b0 = i == i;
           ^
pr70181.C:7:16: warning: unused variable 'b1' [-Wunused-const-variable]
constexpr bool b1 = j == j;
               ^

Reply via email to