Jakub Jelinek wrote: > ASSERT(this) is pointless, it is testing if undefined behavior didn't > happen after the fact, that is just too late. As I said, use > -fsanitize=undefined to make sure you don't call methods on nullptr. Doesn't -fno-delete-null-pointer-checks make such ASSERTs work (and also explicit "if (this)" type checks)? I read that that flag fixes programs which rely on "if (this)" checks. Kevin Kofler -- devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxxx http://lists.fedoraproject.org/admin/lists/devel@xxxxxxxxxxxxxxxxxxxxxxx