https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86815
Bug ID: 86815 Summary: [ 8 regression ] ICE on valid code on armhf Product: gcc Version: 8.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: costamagnagianfranco at yahoo dot it Target Milestone: --- I got the ICE while compiling armhf code, I'm attaching the preprocessed source to this bug report. This happens with the new gcc 8.2, and it works with previous gcc-7 and also gcc-snapshot dated 1:20180721-1 This happens while compiling hedgewars cd /home/locutusofborg/hedgewars-0.9.24.1-dfsg/obj-arm-linux-gnueabihf/QTfrontend && c++ -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DVIDEOREC -D__STDC_CONSTANT_MACROS -I/home/locutusofborg/hedgewars-0.9.24.1-dfsg/misc/libphyslayer -I/usr/include/arm-linux-gnueabihf/qt5/QtCore/5.11.1 -I/usr/include/arm-linux-gnueabihf/qt5/QtCore/5.11.1/QtCore -I/usr/include/SDL2 -I/usr/include/arm-linux-gnueabihf -I/home/locutusofborg/hedgewars-0.9.24.1-dfsg/obj-arm-linux-gnueabihf/QTfrontend -I/home/locutusofborg/hedgewars-0.9.24.1-dfsg/QTfrontend -I/home/locutusofborg/hedgewars-0.9.24.1-dfsg/QTfrontend/model -I/home/locutusofborg/hedgewars-0.9.24.1-dfsg/QTfrontend/net -I/home/locutusofborg/hedgewars-0.9.24.1-dfsg/QTfrontend/ui -I/home/locutusofborg/hedgewars-0.9.24.1-dfsg/QTfrontend/ui/dialog -I/home/locutusofborg/hedgewars-0.9.24.1-dfsg/QTfrontend/ui/page -I/home/locutusofborg/hedgewars-0.9.24.1-dfsg/QTfrontend/ui/widget -I/home/locutusofborg/hedgewars-0.9.24.1-dfsg/QTfrontend/util -I/home/locutusofborg/hedgewars-0.9.24.1-dfsg/QTfrontend/util/platform -I/usr/include/lua5.1 -I/usr/local/include -isystem /usr/include/arm-linux-gnueabihf/qt5 -isystem /usr/include/arm-linux-gnueabihf/qt5/QtCore -isystem /usr/lib/arm-linux-gnueabihf/qt5/mkspecs/linux-g++ -isystem /usr/include/arm-linux-gnueabihf/qt5/QtWidgets -isystem /usr/include/arm-linux-gnueabihf/qt5/QtGui -isystem /usr/include/arm-linux-gnueabihf/qt5/QtNetwork -g -O2 -fdebug-prefix-map=/home/locutusofborg/hedgewars-0.9.24.1-dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -fstack-protector-all -fstack-protector -fvisibility=hidden -Wall -pipe -O2 -g -DNDEBUG -fPIC -std=gnu++11 -o CMakeFiles/hedgewars.dir/model/HatModel.cpp.o -c /home/locutusofborg/hedgewars-0.9.24.1-dfsg/QTfrontend/model/HatModel.cpp In file included from /usr/include/arm-linux-gnueabihf/qt5/QtCore/qvariant.h:47, from /usr/include/arm-linux-gnueabihf/qt5/QtCore/qabstractitemmodel.h:43, from /usr/include/arm-linux-gnueabihf/qt5/QtGui/qstandarditemmodel.h:44, from /usr/include/arm-linux-gnueabihf/qt5/QtGui/QStandardItemModel:1, from /home/locutusofborg/hedgewars-0.9.24.1-dfsg/QTfrontend/model/HatModel.h:27, from /home/locutusofborg/hedgewars-0.9.24.1-dfsg/QTfrontend/model/HatModel.cpp:24: /usr/include/arm-linux-gnueabihf/qt5/QtCore/qmap.h:1215:25: internal compiler error: Segmentation fault using QMap<Key, T>::remove; ^~~~~~ Please submit a full bug report, with preprocessed source if appropriate. See <file:///usr/share/doc/gcc-8/README.Bugs> for instructions. compilation works with -O1, and also with gcc-7