https://gcc.gnu.org/bugzilla/show_bug.cgi?id=128001
--- Comment #1 from Tobias Burnus <burnus at gcc dot gnu.org> ---
The following mostly works
--- a/gcc/tree.cc
+++ b/gcc/tree.cc
@@ -11915,2 +11915,3 @@ walk_tree_1 (tree *tp, walk_tree_fn func, void *data,
case TREE_LIST:
+ WALK_SUBTREE (TREE_PURPOSE (t));
WALK_SUBTREE (TREE_VALUE (t));
But gives an ICE for the 'iterator' of OMP_CLAUSE_AFFINITY and
OMP_CLAUSE_DEPEND; for MAP clauses, it is excluded via the
OMP_CLAUSE_HAS_ITERATORS
check in walk_tree_1.
* * *
RFC patch:
https://gcc.gnu.org/pipermail/gcc-patches/2026-October/735237.html