Use static pointer to member when catching nullptr
authorJonathan Wakely <jwakely@redhat.com>
Wed, 20 Jul 2016 18:21:48 +0000 (19:21 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Wed, 20 Jul 2016 18:21:48 +0000 (19:21 +0100)
commit18407bfb2c2a34648ac7a1a8ebaa9a72a04126c6
treec098d81960006323e6c0be48ab05026e6e2544ec
parent4c07fd98b80242f8d4fd30e6264150826c21cee6
Use static pointer to member when catching nullptr

libstdc++-v3:

* libsupc++/pbase_type_info.cc (__pbase_type_info::__do_catch): Use
static objects for catching nullptr as pointer to member types.

gcc/testsuite:

* g++.dg/cpp0x/nullptr35.C: Change expected result for catching as
pointer to member function and also test catching by reference.

From-SVN: r238532
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/nullptr35.C
libstdc++-v3/ChangeLog
libstdc++-v3/libsupc++/pbase_type_info.cc