https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120052
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- 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) firstprivate(indx) [child fn: f._omp_fn.0 (???)] .UBSAN_BOUNDS (0B, indx.5, s.1);