This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/45133] [c++0x] std::future will crash with NULL deref if get() is called twice
- 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: Fri, 3 Dec 2010 15:38:58 +0000
- Subject: [Bug libstdc++/45133] [c++0x] std::future will crash with NULL deref if get() is called twice
- Auto-submitted: auto-generated
- References: <bug-45133-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45133
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|SUSPENDED |ASSIGNED
--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> 2010-12-03 15:38:53 UTC ---
The latest draft still says this is undefined behaviour, but has a note
encouraging implementations to detect this case and throw. I am suitably
encouraged.
I'll start by doing that conditionally when _GLIBCXX_DEBUG is defined...