http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59199

--- Comment #5 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to Richard Biener from comment #4)
>
> Likely a update_address_taken bug, eventual fix:
> 
> @@ -1329,6 +1336,10 @@ non_rewritable_mem_ref_base (tree ref)
>    if (DECL_P (ref))
>      return NULL_TREE;
>  
> +  /* For DEBUG_STMTs we have to look through ADDR_EXPRs.  */
> +  if (TREE_CODE (ref) == ADDR_EXPR)
> +    ref = TREE_OPERAND (ref, 0);
> +
>    while (handled_component_p (base))
>      base = TREE_OPERAND (base, 0);

I tried it and I still got the same error:

Reply via email to