This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/58796] throw nullptr not caught by catch(type*)


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]