https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106836
--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Jakub Jelinek <ja...@gcc.gnu.org>: https://gcc.gnu.org/g:1bf8b7adc2de6f2ddaffa3af131b6855ae3e3793 commit r13-2489-g1bf8b7adc2de6f2ddaffa3af131b6855ae3e3793 Author: Jakub Jelinek <ja...@redhat.com> Date: Tue Sep 6 09:21:10 2022 +0200 openmp: Fix ICE when splitting invalid depend(source)/depend(sink:vec) As we now create OMP_CLAUSE_DOACROSS rather than OMP_CLAUSE_DEPEND when depend is used with source/sink modifiers, c_omp_split_clauses can see OMP_CLAUSE_DOACROSS clause too before we diagnose it as erroneous. The following patch treats it like OMP_CLAUSE_DEPEND during the splitting but adds an assertion. 2022-09-06 Jakub Jelinek <ja...@redhat.com> PR c/106836 * c-omp.cc (c_omp_split_clauses): Handle OMP_CLAUSE_DOACROSS. * c-c++-common/gomp/pr106836.c: New test.