http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47455
--- Comment #9 from janus at gcc dot gnu.org 2011-01-31 22:04:27 UTC --- (In reply to comment #7) > The test in comment #6 segfault also. Yes, this is expected. It's not intended to be a run-time test. 'find_x' returns a NULL-pointer, which is being dereferenced in the assignment.