[Bug libstdc++/59656] weak_ptr::lock function crashes when compiling with -fno-exceptions flag
ppluzhnikov at google dot com
gcc-bugzilla@gcc.gnu.org
Sat Jan 18 16:55:00 GMT 2014
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59656
Paul Pluzhnikov <ppluzhnikov at google dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ppluzhnikov at google dot com
--- Comment #2 from Paul Pluzhnikov <ppluzhnikov at google dot com> ---
(In reply to Jonathan Wakely from comment #1)
> The standard says exceptions are always enabled, if you disable them you are
> no longer using standard C++, so what it says in the standard doesn't
> necessarily apply.
It's a quality of implementation issue: effectively current std::weak_ptr is
not usable in any multithreaded program built with -fno-exceptions.
> I don't think it would be simple to make this work with -fno-exceptions
We have a patch that makes it work.
More information about the Gcc-bugs
mailing list