https://gcc.gnu.org/bugzilla/show_bug.cgi?id=128001
--- Comment #2 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Tobias Burnus <[email protected]>: https://gcc.gnu.org/g:4a44f6b8991274c03e5bfee2c3ba3be343dce35b commit r17-5337-g4a44f6b8991274c03e5bfee2c3ba3be343dce35b Author: Tobias Burnus <[email protected]> Date: Mon Oct 19 15:50:44 2026 +0200 walk_tree_1: Fix tree-walking of OMP_METADIRECTIVE [PR128001] OpenMP's metadirective uses TREE_PURPOSE of TREE_LIST, which is not walked by default, leading to a missing 'omp declare target' attribute. Solution: Handle OMP_METADIRECTIVE explicitly. PR middle-end/128001 gcc/ChangeLog: * tree.cc (walk_tree_1): Add comment; handle OMP_METADIRECTIVE explicitly. gcc/testsuite/ChangeLog: * gfortran.dg/gomp/metadirective-14.f90: New test.
