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

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2019-10-15
     Ever confirmed|0                           |1

--- Comment #2 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
 9351           /* When returning address of a structured binding, if the
structured
 9352              binding is not a reference, continue normally, if it is a
 9353              reference, recurse on the initializer of the structured
 9354              binding.  */
 9355           tree base = DECL_DECOMP_BASE (whats_returned);
 9356           if (TYPE_REF_P (TREE_TYPE (base)))
 9357             {
 9358               tree init = DECL_INITIAL (base);
 9359               return maybe_warn_about_returning_address_of_local (init);
 9360             }

init is null here and cp_fold crashes on that.

Reply via email to