https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102020
Martin Liška <marxin at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Ever confirmed|0 |1
Last reconfirmed| |2021-08-23
Status|UNCONFIRMED |NEW
CC| |dmalcolm at gcc dot gnu.org,
| |hailankurthegr8 at gmail dot
com,
| |marxin at gcc dot gnu.org
--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
I'm pretty sure it's caused by a typo in the code:
build/gcc/analyzer/diagnostic-manager.cc:2108:21: warning: variable
'caller_var' is used uninitialized whenever 'if' condition is false
[-Wsometimes-uninitialized]
+ else
+ callee_var = callee_model->get_representative_tree (sval);
This should be likely 'caller_var'.