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*)


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58796

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2013-10-30
     Ever confirmed|0                           |1

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
I agree this looks like a bug. Reduced:

struct A {};
typedef int A::*PointerToMember;

int main() {
  try {
    throw nullptr;
  } catch (PointerToMember) { // This *should* catch throw nullptr...
  }

  try {
    throw nullptr;
  } catch(void *) { // This *should* catch throw nullptr...
  }
}


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