Skip to content

Internal compiler error: in estimate_move_cost, at tree-inline.cc:4249 #149

@lpsinger

Description

@lpsinger

The following code:

// 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];
    }
}

produces the following internal compiler error when compiled with OpenMP enabled:

$ 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.

This ICE bug looks like it was introduced by abc4000.

Reported to MacPorts as https://trac.macports.org/ticket/73267 and to GCC as https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122877.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions