Paul-Antoine Arras wrote:
On 24/10/2025 10:13, Paul-Antoine Arras wrote:

...

     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.

...

+      if (parser->omp_metadirective_state)
+       identifier = mangle_metadirective_region_label (parser, identifier);

LGTM. Thanks for the patch!

Tobias

Reply via email to