[Bug libstdc++/59829] Calling vector::data() occurs undefined behavior when the vector is empty

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Jan 29 15:01:00 GMT 2014


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

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED
   Target Milestone|---                         |4.9.0

--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Fixed for 4.9.0

I'm not planning to backport this, as it will only do any harm with
user-defined allocators with custom pointer types, which are not widely used.



More information about the Gcc-bugs mailing list