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

Jason Merrill <jason at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2011-09-23
            Summary|[C++0x] Prematurely         |[C++0x] warn about uses of
                   |destroys initializer_list   |initializer_list that will
                   |array when using            |lead to dangling pointers
                   |new-expression              |
     Ever Confirmed|0                           |1

--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> 2011-09-23 
22:13:45 UTC ---
This is related to DR 1290.  At Bloomington we decided to clarify that the
lifetime of the array is like a temporary bound to a reference; in this case it
has full-expression lifetime.  We should probably add a warning about "new
initializer_list".

Reply via email to