https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78858
--- Comment #5 from Marc Mutz <marc.mutz at kdab dot com> --- Created attachment 40368 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40368&action=edit Another TU that has an unfixable -Wnonnull warning g++ -c -pipe -ffunction-sections -O2 -g -fPIC -std=c++1z -fno-exceptions -fsanitize=address -fsanitize=undefined -fno-omit-frame-pointer -Wall -W -Wvla -Wdate-time -Wshift-overflow=2 -Wduplicated-cond -Werror -Wno-error=cpp -Wno-error=deprecated-declarations -Wno-error=strict-overflow -D_REENTRANT -DQT_VERSION_STR='"5.8.0"' -DQT_VERSION_MAJOR=5 -DQT_VERSION_MINOR=8 -DQT_VERSION_PATCH=0 -DQT_BOOTSTRAPPED -DQT_LITE_UNICODE -DQT_NO_CAST_TO_ASCII -DQT_NO_CODECS -DQT_NO_DATASTREAM -DQT_NO_LIBRARY -DQT_NO_QOBJECT -DQT_NO_SYSTEMLOCALE -DQT_NO_THREAD -DQT_NO_UNICODETABLES -DQT_NO_USING_NAMESPACE -DQT_NO_DEPRECATED -DQT_NO_TRANSLATION -DQT_CRYPTOGRAPHICHASH_ONLY_SHA1 -DQT_NO_FOREACH -DQT_NO_CAST_FROM_ASCII -DQT_BUILD_BOOTSTRAP_LIB -DQT_BUILDING_QT -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -I/home/marc/Qt/qt5/qtbase/src/tools/bootstrap -I. -I../../../include -I../../../include/QtCore -I../../../include/QtCore/5.8.0 -I../../../include/QtCore/5.8.0/QtCore -I../../../include/QtXml -I../../../include/QtXml/5.8.0 -I../../../include/QtXml/5.8.0/QtXml -I/home/marc/Qt/qt5/qtbase/mkspecs/linux-g++ -o .obj/qjsonparser.o /home/marc/Qt/qt5/qtbase/src/corelib/json/qjsonparser.cpp In file included from ../../../include/QtCore/qvector.h:1:0, from ../../../include/QtCore/../../../../qt5/qtbase/src/corelib/io/qdebug.h:51, from ../../../include/QtCore/qdebug.h:1, from /home/marc/Qt/qt5/qtbase/src/corelib/json/qjsonparser.cpp:44: ../../../include/QtCore/../../../../qt5/qtbase/src/corelib/tools/qvector.h: In member function ‘void QJsonPrivate::Parser::ParsedObject::insert(uint)’: ../../../include/QtCore/../../../../qt5/qtbase/src/corelib/tools/qvector.h:717:13: error: argument 2 null where non-null expected [-Werror=nonnull] memmove(i, b, (d->size - offset) * sizeof(T)); ^~~~~~~