https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120619
Bug ID: 120619 Summary: ICE: Segmentation fault during IPA pass: tmipa Product: gcc Version: 16.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: iamanonymous.cs at gmail dot com Target Milestone: --- Target: x86_64 ******************************************************************************* The compiler produces an internal error during IPA pass: tmipa when compiling the provided code with the specified options. The issue can also be reproduced on Compiler Explorer. ******************************************************************************* OS and Platform: # uname -a Linux ubuntu 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux ******************************************************************************* # gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/root/gdbtest/gcc/gcc-250610/libexec/gcc/x86_64-pc-linux-gnu/16.0.0/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: ../gcc-master/configure --prefix=/root/gdbtest/gcc/gcc-250610 --enable-languages=c,c++ --disable-multilib --disable-bootstrap : (reconfigured) ../gcc-master/configure --prefix=/root/gdbtest/gcc/gcc-250610 --enable-languages=c,c++ --disable-multilib --disable-bootstrap Thread model: posix Supported LTO compression algorithms: zlib gcc version 16.0.0 20250610 (experimental) (GCC) ******************************************************************************* Program: #cat code.c __attribute ((transaction_safe)) int f() { int x; &x; } ******************************************************************************* Command Lines: g++ code.c -fgnu-tm -fsanitize=thread -fno-optimize-sibling-calls -Wuninitialized -c -o code_0.o during IPA pass: tmipa <source>: In function 'f': <source>:5:1: internal compiler error: Segmentation fault 5 | } | ^ 0x25075c5 diagnostic_context::diagnostic_impl(rich_location*, diagnostic_metadata const*, diagnostic_option_id, char const*, __va_list_tag (*) [1], diagnostic_t) ???:0 0x2525a46 internal_error(char const*, ...) ???:0 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See <https://gcc.gnu.org/bugs/> for instructions. Compiler returned: 1 ******************************************************************************* Also ICE on trunk, compiler explorer:https://gcc.godbolt.org/z/MdvEbqsMs *******************************************************************************