[Bug c++/80665] dynamic cast on nullptr leads to segfault

2017-05-08 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80665 --- Comment #3 from Andrew Pinski --- To clarify Richard's statement in the following statement is undefined Derived* snd_ptr = fst_ptr->as(); When fst_ptr is a null pointer.

[Bug c++/80665] dynamic cast on nullptr leads to segfault

2017-05-08 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80665 Richard Biener changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c++/80665] dynamic cast on nullptr leads to segfault

2017-05-08 Thread abenkhadra at protonmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80665 --- Comment #1 from abenkhadra --- A small clarification: the segfault happens upon executing the produced binary and not in g++ itself.