[PATCH] c++/58796 Make nullptr match exception handlers of pointer type

Jonathan Wakely jwakely@redhat.com
Wed Jul 20 13:34:00 GMT 2016


On 19/07/16 10:32 +0100, Jonathan Wakely wrote:
>On 18/07/16 12:49 -0400, Jason Merrill wrote:
>>Perhaps the right answer is to drop support for catching nullptr as a
>>pointers to member from the language.
>
>Yes, I've been drafting a ballot comment along those lines.

On the CWG reflector Richard Smith suggested using static objects as
the result for pointer to member handlers. I had tried that
unsuccessfully, but must have done something wrong because it works
fine, and avoids any races.

Tested x86_64-linux. I'll commit this to trunk later today.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.txt
Type: text/x-patch
Size: 2867 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20160720/07310f26/attachment.bin>


More information about the Libstdc++ mailing list