https://gcc.gnu.org/bugzilla/show_bug.cgi?id=127308
Bug ID: 127308
Summary: gcc/genmatch.cc:1279: out of range warning from clang
Product: gcc
Version: 17.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: dcb314 at hotmail dot com
Target Milestone: ---
Today's build of gcc trunk with clang says:
gcc/genmatch.cc:1279:38: warning: result of comparison of constant '
NOP_EXPR' (129) with expression of type 'const char' is always false
[-Wtautolog
ical-constant-out-of-range-compare]
Source code is
if (*id == CONVERT_EXPR || *id == NOP_EXPR)
I guess chars are signed. git blame says:
d3481fc3f874 gcc/genmatch.cc (Andrea Pinski 2026-08-16 22:48:14 -0700
1279) if (*id == CONVERT_EXPR || *id == NOP_EXPR)