https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122864
Bug ID: 122864
Summary: chrono:3358:25: warning: suggest parentheses around
comparison in operand of ‘|’ [-Wparentheses]
Product: gcc
Version: 16.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libstdc++
Assignee: unassigned at gcc dot gnu.org
Reporter: dcb314 at hotmail dot com
Target Milestone: ---
A build of today's gcc trunk with clang produces:
/home/dcb42/gcc/working/x86_64-pc-linux-gnu/libstdc++-v3/include/chrono:3358:25:
warning: suggest parentheses around comparison in operand of ‘|’
[-Wparentheses]
3358 | ((__res = (__res <= (sizeof(_Ts) * __CHAR_BIT__) |
_ResT(__vs))), ...);
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Internal improvement, but might be worth tidying up, since clang does
like the look of it.