https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71867
--- Comment #4 from asmwarrior <asmwarrior at gmail dot com> --- It looks like the code is called from an inline function, you can see this code snippet in the prepossessed file. inline wxObject *wxCheckDynamicCast(wxObject *obj, wxClassInfo *classInfo) { return obj && obj->GetClassInfo()->IsKindOf(classInfo) ? obj : # 502 "..\\..\\include/wx/object.h" 3 4 __null # 502 "..\\..\\include/wx/object.h" ; }