------- Additional Comments From falk at debian dot org 2005-05-17 12:30 ------- (In reply to comment #8) > - yes, however as the loigical extention of: > "a null reference is undefined" => "may trap" => "will trap" > is simply wrong, and is not justifyable; such an optimization > is target specific, as it depends on "will trap" target semantics.
Right. However, the logic here is simply "a null pointer dereference is undefined" => "if you still do it, your code may behave however gcc feels like", which is backed by the C standard. So this is invalid. -- What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |INVALID http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21479