https://bugs.kde.org/show_bug.cgi?id=373911
--- Comment #17 from Ralf Habacker <ralf.habac...@freenet.de> --- (In reply to Ralf Habacker from comment #15) > on windows: > > __ZN9UMLObject15asUMLClassifierEv: > subl $28, %esp > movl $0, 12(%esp) > movl $__ZTI13UMLClassifier, 8(%esp) > movl $__ZTI9UMLObject, 4(%esp) > movl %ecx, (%esp) > call ___dynamic_cast > addl $28, %esp > ret > > -> there is no null pointer check The reason why there is no null pointer check with cross-gcc 6.2 is probably because 'this' pointer is marked as to be "notnull". https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html#Common-Function-Attributes states: "... The nonnull attribute specifies that some function parameters should be non-null pointers. .... The compiler may also choose to make optimizations based on the knowledge that certain function arguments will never be null. ..." In the opposite gcc 5.x on linux adds this check -- You are receiving this mail because: You are watching all bug changes.