This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/59829] Calling vector::data() occurs undefined behavior when the vector is empty
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 29 Jan 2014 15:01:45 +0000
- Subject: [Bug libstdc++/59829] Calling vector::data() occurs undefined behavior when the vector is empty
- Auto-submitted: auto-generated
- References: <bug-59829-4 at http dot gcc dot gnu dot org/bugzilla/>
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.