https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118795
Bug ID: 118795 Summary: [15 Regression] ICE in expand_expr_real_2, at expr.cc:10975 Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: rtl-optimization Assignee: unassigned at gcc dot gnu.org Reporter: doko at gcc dot gnu.org Target Milestone: --- seen with trunk 20241218 and 20250203 on x86_64-linux-gnu. Not yet reduced, the build system has a hardcoded pch build. building the darkradiant 3.9.0 package: cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/radiantcore && /usr/bin/c++ -DFMT_HEADER_ONLY -DHAVE_CONFIG_H -DHAVE_STD_FILESYSTEM -DPOSIX -DWXINTL_NO_GETTEXT_MACRO -DWXUSINGDLL -D_FILE_OFFSET_BITS=64 -D__WXGTK__ -Dradiantcore_EXPORTS -I/<<PKGBUILDDIR>>/libs -I/<<PKGBUILDDIR>>/libs/libfmt -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu -I/<<PKGBUILDDIR>>/radiantcore/. -isystem /usr/lib/x86_64-linux-gnu/wx/include/gtk3-unicode-3.2 -isystem /usr/include/wx-3.2 -g -O3 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -fdebug-prefix-map=/<<PKGBUILDDIR>>=/usr/src/darkradiant-3.9.0-1 -Wdate-time -D_FORTIFY_SOURCE=3 -pthread -std=gnu++17 -fPIC -I/usr/include/sigc++-2.0 -I/usr/lib/x86_64-linux-gnu/sigc++-2.0/include -I/usr/include/eigen3 -I/usr/include -I/usr/include/FTGL -I/usr/include/freetype2 -I/usr/include/libpng16 -fPIC -Winvalid-pch -include /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/radiantcore/CMakeFiles/radiantcore.dir/cmake_pch.hxx -MD -MT radiantcore/CMakeFiles/radiantcore.dir/shaders/MapExpression.cpp.o -MF CMakeFiles/radiantcore.dir/shaders/MapExpression.cpp.o.d -o CMakeFiles/radiantcore.dir/shaders/MapExpression.cpp.o -c /<<PKGBUILDDIR>>/radiantcore/shaders/MapExpression.cpp during RTL pass: expand /<<PKGBUILDDIR>>/radiantcore/shaders/MapExpression.cpp: In member function ‘shaders::MakeIntensityExpression::getImage() const’: /<<PKGBUILDDIR>>/radiantcore/shaders/MapExpression.cpp:638:32: internal compiler error: in expand_expr_real_2, at expr.cc:10975 638 | out[0] = in[0]; | ~~~~~~~^~~~~~~ 0x31c5926 diagnostic_context::diagnostic_impl(rich_location*, diagnostic_metadata const*, diagnostic_option_id, char const*, __va_list_tag (*) [1], diagnostic_t) ???:0 0x31db933 internal_error(char const*, ...) ???:0 0xfdb42b fancy_abort(char const*, int, char const*) ???:0 0x1542441 expand_expr_real_gassign(gassign*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool) ???:0 0x15415dd expand_expr_real_1(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool) ???:0 0x1550c2c expand_assignment(tree_node*, tree_node*, bool) ???:0 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. complete build log at https://launchpad.net/ubuntu/+archive/test-rebuild-20241218-plucky-gcc15/+build/29597525