[Bug c++/58796] throw nullptr not caught by catch(type*)
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Oct 30 14:39:00 GMT 2013
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...
}
}
More information about the Gcc-bugs
mailing list