https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122378
--- Comment #6 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Paul-Antoine Arras <[email protected]>: https://gcc.gnu.org/g:d9f720f2ce39b56e91209c0283049f8e0ae8e7fc commit r16-4658-gd9f720f2ce39b56e91209c0283049f8e0ae8e7fc Author: Paul-Antoine Arras <[email protected]> Date: Fri Oct 24 11:05:27 2025 +0200 OpenMP/C++: Fix label mangling in metadirective body [PR122378] Testcase c-c++-common/gomp/attrs-metadirective-2.c failed in C++ when OFFLOAD_TARGET_NAMES=nvptx-none. That was caused by label mangling being applied to the use but not to the declaration. This is now fixed by mangling the declaration as well. PR c++/122378 gcc/cp/ChangeLog: * parser.cc (cp_parser_label_declaration): Mangle label declaration in a metadirective region.
