https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97714
Bug ID: 97714 Summary: ICE in notice_source_line, at final.c:3237 Product: gcc Version: 10.2.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: rtl-optimization Assignee: unassigned at gcc dot gnu.org Reporter: doko at debian dot org Target Milestone: --- seen with the gcc-10 branch and the trunk on x86_64-linux-gnu, I don't know if it's a regression (it doesn't fail with --enable-checking=release). $ cat testcase.c void function() { if (0) { #line 0 "can be anything" }} $ gcc -c -g -O1 testcase.c during RTL pass: final can be anything: In function ‘function’: can be anything: internal compiler error: in notice_source_line, at final.c:3237 0x6408a3 notice_source_line ../../src/gcc/final.c:3237 0xc667cd final_scan_insn_1 ../../src/gcc/final.c:2420 0xc67b4b final_scan_insn(rtx_insn*, _IO_FILE*, int, int, int*) ../../src/gcc/final.c:3152 0xc67c56 final_1 ../../src/gcc/final.c:2020 0xc689c6 rest_of_handle_final ../../src/gcc/final.c:4658 0xc689c6 execute ../../src/gcc/final.c:4736 Please submit a full bug report, with preprocessed source if appropriate. compiler configured with --enable-checking=yes,extra,rtl