https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103704
--- 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:c0e34451ae582c901a2df08498b36f68ae401f0a commit r12-5992-gc0e34451ae582c901a2df08498b36f68ae401f0a Author: Jakub Jelinek <ja...@redhat.com> Date: Wed Dec 15 10:27:08 2021 +0100 openmp: Avoid calling operand_equal_p on OMP_CLAUSEs [PR103704] On OMP_CLAUSEs we reuse TREE_TYPE as CP_OMP_CLAUSE_INFO in the C++ FE. This confuses the hashing code that operand_equal_p does when checking. There is really no reason to compare OMP_CLAUSEs against expressions like captured this, they will never compare equal. 2021-12-15 Jakub Jelinek <ja...@redhat.com> PR c++/103704 * semantics.c (finish_omp_target_clauses_r): For OMP_CLAUSEs just walk subtrees. * g++.dg/gomp/pr103704.C: New test.