https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124972
Bug ID: 124972
Summary: trans-decl.cc:5539: Impossible AND ?
Product: gcc
Version: 16.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: dcb314 at hotmail dot com
Target Milestone: ---
Source code is
&& (!(CONSTANT_CLASS_P (se.expr) && DECL_P (se.expr))
but static analyser Coverity says:
CID 1547560: (#1 of 1): Constant expression result
(CONSTANT_EXPRESSION_RESULT)
impossible_and: The and condition
tree_code_type[(int)(tree_code)se.expr->base.code] == tcc_constant &&
tree_code_type[(int)(tree_code)se.expr->base.code] == tcc_declaration can never
be true because tree_code_type[(int)(tree_code)se.expr->base.code] cannot be
equal to two different values at the same time.
So that makes the following block into dead code.
Might be worth some rework.