https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92106

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
(In reply to Marek Polacek from comment #4)
> +     tree init;
> +     if (TYPE_REF_P (TREE_TYPE (base))
> +         && (init = DECL_INITIAL (base)))
> +       return maybe_warn_about_returning_address_of_local (init);

Then please use
      if (TYPE_REF_P (TREE_TYPE (base))
        if (tree init = DECL_INITIAL (base))
          return ...;
instead.

Reply via email to