c++/58796 Make nullptr match exception handlers of pointer type
authorJonathan Wakely <jwakely@redhat.com>
Fri, 15 Jul 2016 18:51:51 +0000 (19:51 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Fri, 15 Jul 2016 18:51:51 +0000 (19:51 +0100)
commit479d0ed5900b8e87634cd92383c11a5571cc43d9
tree84b1ce031651f5ab9047b20512bc2cacadc0912f
parentde54de93fa4bf4740638e58f9aaab1e50026bacb
c++/58796 Make nullptr match exception handlers of pointer type

libstdc++-v3:

PR c++/58796
* libsupc++/pbase_type_info.cc (__pbase_type_info::__do_catch): Make
nullptr match handlers of pointer type.

gcc/testsuite:

PR c++/58796
* g++.dg/cpp0x/nullptr21.C: Remove void* handlers.
* g++.dg/cpp0x/nullptr35.C: New test.

From-SVN: r238396
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/nullptr21.C
gcc/testsuite/g++.dg/cpp0x/nullptr35.C [new file with mode: 0644]
libstdc++-v3/ChangeLog
libstdc++-v3/libsupc++/pbase_type_info.cc