https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100957
--- Comment #2 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:8b4641033ab6901c18f68b98843f1038a9a52e03 commit r12-1284-g8b4641033ab6901c18f68b98843f1038a9a52e03 Author: Jakub Jelinek <ja...@redhat.com> Date: Tue Jun 8 11:16:41 2021 +0200 openmp: Fix ICE on depend(source) clause during cdtor cloning [PR100957] The depend(source) clause has NULL OMP_CLAUSE_DECL, it has just the depend kind specified and no arguments. So copy_tree_body_r shouldn't check TREE_CODE on it without checking it is non-NULL. 2021-06-08 Jakub Jelinek <ja...@redhat.com> PR c++/100957 * tree-inline.c (copy_tree_body_r): For OMP_CLAUSE_DEPEND don't check TREE_CODE if OMP_CLAUSE_DECL is NULL. * g++.dg/gomp/doacross-2.C: New test.