https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122877
Bug ID: 122877
Summary: ICE in estimate_move_cost when compiling with OpenMP
Product: gcc
Version: 15.2.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: leo.p.singer at nasa dot gov
Target Milestone: ---
Created attachment 62921
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=62921&action=edit
Minimal reproducer source code
I am experiencing an internal compiler error when compiling the following code
on macOS with OpenMP turned on:
// test.c
void crash_compiler(const int *dimensions)
{
const int n = dimensions[0];
const int m = dimensions[1];
#pragma omp parallel
{
const float data[m];
}
}
Here is the command that I ran and the output:
$ gcc -fopenmp -c test.c
during GIMPLE pass: local-fnsummary
test.c: In function 'crash_compiler':
test.c:11:1: internal compiler error: in estimate_move_cost, at
tree-inline.cc:4249
11 | }
| ^
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
See <https://trac.macports.org/newticket> for instructions.
I have tried this with multiple versions of GCC from MacPorts and Homebrew, and
I get the same error message across both builds and many different versions of
GCC.
I am attaching the output of `gcc -v -save-temps -fopenmp -c test.c`.