https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93441
Bug ID: 93441
Summary: _Generic selections ought to be treated as
parenthesized expressions as far as
-Wlogical-not-parentheses is concerned
Product: gcc
Version: 9.2.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: pskocik at gmail dot com
Target Milestone: ---
int x [ _Generic(0,int: !0) < 10 ]; //falsely triggers
-Wlogical-not-parentheses
int y [ (_Generic(0,int: !0)) < 10 ]; //OK