https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120055
Bug ID: 120055 Summary: ice in convert_arguments with recent compiler Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: dcb314 at hotmail dot com Target Milestone: --- Created attachment 61264 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=61264&action=edit C source code For the attached C code, recent gcc trunk does this: foundBugs $ ../results/bin/gcc -c -w -std=gnu99 bug1098.c /home/dcb40b/rpmbuild/BUILD/cqueues-rel-20200603/src/lib/dns.c: In function ‘dns _rr_i_start’: /home/dcb40b/rpmbuild/BUILD/cqueues-rel-20200603/src/lib/dns.c:2810:17: internal compiler error: Segmentation fault 2810 | if (i->sort(&rr, &r0, i, P) < 0) | ^~ 0x23a594e ??? /home/dcb40b/gcc/working/gcc/../../trunk/gcc/diagnostic-global-context.c c:517 0xf8d169 ??? /home/dcb40b/gcc/working/gcc/../../trunk/gcc/toplev.cc:321 0x7bef88 tree_check ../../trunk/gcc/tree.h:3979 0x7bef88 fndecl_built_in_p ../../trunk/gcc/tree.h:6922 0x7bef88 convert_arguments /home/dcb40b/gcc/working/gcc/../../trunk/gcc/c/c-typeck.cc:4340 The bug seems to have started in the last few days: foundBugs $ ../results.20250430.ubsan/bin/gcc -c -w -std=gnu99 bug1098.c foundBugs $ ../results.20250501.ubsan/bin/gcc -c -w -std=gnu99 bug1098.c /home/dcb40b/rpmbuild/BUILD/cqueues-rel-20200603/src/lib/dns.c: In function ‘dns _rr_i_start’: /home/dcb40b/rpmbuild/BUILD/cqueues-rel-20200603/src/lib/dns.c:2810:17: internal compiler error: Segmentation fault Further: foundBugs $ ../results.20250430.ubsan/bin/gcc -v 2>&1 | grep exp gcc version 16.0.0 20250430 (experimental) (8709d6a17830c8a9) foundBugs $ ../results.20250501.ubsan/bin/gcc -v 2>&1 | grep exp gcc version 16.0.0 20250501 (experimental) (87c4460024dadef0) foundBugs $