https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116865
Bug ID: 116865 Summary: ICE when compiling GNU coreutils numfmt with -fanalyzer Product: gcc Version: 14.2.1 Status: UNCONFIRMED Keywords: ice-checking Severity: normal Priority: P3 Component: analyzer Assignee: dmalcolm at gcc dot gnu.org Reporter: eggert at cs dot ucla.edu Target Milestone: --- Created attachment 59214 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=59214&action=edit Compile with "gcc -O2 -S -fanalyzer t.i" to get internal compiler error This is gcc (GCC) 14.2.1 20240912 (Red Hat 14.2.1-3) on x86-64. I don't see a problem with gcc-13 on Ubuntu so I guess it is a regression. Decompress and compile the attached program with: gunzip t.i.gz gcc -O2 -S -fanalyzer t.i The output is: during IPA pass: analyzer src/numfmt.c: In function ‘unit_to_umax’: src/numfmt.c:843:53: internal compiler error: in build2, at tree.cc:5093 843 | if (*end == 'i' && 2 <= n_len && ! c_isdigit (*(end - 1))) | ^~~~~~~~~~ Please submit a full bug report, with preprocessed source (by using -freport-bug). See <http://bugzilla.redhat.com/bugzilla> for instructions. Preprocessed source stored into /tmp/cctQjDWE.out file, please attach this to your bugreport.