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

Martin Sebor <msebor at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
           Assignee|unassigned at gcc dot gnu.org      |msebor at gcc dot 
gnu.org

--- Comment #5 from Martin Sebor <msebor at gcc dot gnu.org> ---
Created attachment 45570
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45570&action=edit
Proposed fix.

Okay, I'm fine with referring to a temporary instead.  I see what you mean
about the lifetime but saying it's unspecified seems unnecessary -- temporaries
have a temporary lifetime that extends to the end of the full expression and
that presumably is the minimum that should apply here as well.  I left the
reference to compound literals in place.  I think it's still useful (especially
because of the lifetime).  I did some more testing and clarified that it's a C
only feature.  Attached is what I've got.

Reply via email to