Message ID | alpine.LNX.2.00.1006162328290.1429@zhemvz.fhfr.qr |
---|---|
State | New |
Headers | show |
Index: gcc/tree-ssa.c =================================================================== --- gcc/tree-ssa.c (revision 160824) +++ gcc/tree-ssa.c (working copy) @@ -1650,8 +1650,9 @@ warn_uninitialized_var (tree *tp, int *w /* We do not care about LHS. */ if (wi->is_lhs) { - /* Except for operands of INDIRECT_REF. */ - if (!INDIRECT_REF_P (t)) + /* Except for operands of dereferences. */ + if (!INDIRECT_REF_P (t) + && TREE_CODE (t) != MEM_REF) return NULL_TREE; t = TREE_OPERAND (t, 0); }