This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/58796] throw nullptr not caught by catch(type*)
- 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, 15 Jul 2016 18:52:23 +0000
- Subject: [Bug c++/58796] throw nullptr not caught by catch(type*)
- Auto-submitted: auto-generated
- References: <bug-58796-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58796
--- Comment #16 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Fri Jul 15 18:51:51 2016
New Revision: 238396
URL: https://gcc.gnu.org/viewcvs?rev=238396&root=gcc&view=rev
Log:
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.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/nullptr35.C
Modified:
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/g++.dg/cpp0x/nullptr21.C
trunk/libstdc++-v3/ChangeLog
trunk/libstdc++-v3/libsupc++/pbase_type_info.cc