[Bug c++/53762] pointer-casts don't always check null-pointers

2012-06-24 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53762 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|

[Bug c++/53762] pointer-casts don't always check null-pointers

2012-06-24 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53762 --- Comment #2 from Jonathan Wakely 2012-06-24 16:30:54 UTC --- These are allowed: pa = static_cast(pb); pb = static_cast(pa); All the other casts are not because they involve dereferencing a null pointer which is not allowed by [expr.unary

[Bug c++/53762] pointer-casts don't always check null-pointers

2012-06-24 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53762 Jonathan Wakely changed: What|Removed |Added Severity|major |normal --- Comment #1 from Jonathan Wak