https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70403 --- Comment #8 from Hadula, Tomasz <thadula at ciena dot com> --- When I compile with devirtualization disabled (i.e. with -fno-devirtualize) the null pointer check is where it was supposed to be. Any clue why?