https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120052
--- Comment #3 from Andrew Pinski ---
gcc_checking_assert (TREE_CODE (repl) != ERROR_MARK);
This is due to s.1 not being recorded in the #pragma:
#pragma omp parallel firstprivate(counts.3) firstprivate(D.3444)
private(counts)
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120052
--- Comment #2 from Andrew Pinski ---
during GIMPLE pass: omplower
dump file: /app/output.cpp.010t.omplower
: In function 'f':
:5:14: internal compiler error: in scan_omp_1_op, at omp-low.cc:4005
5 | counts[i][indx] = 1;
|