]> git.ipfire.org Git - thirdparty/gcc.git/commit
OpenMP/C++: Fix label mangling in metadirective body [PR122378]
authorPaul-Antoine Arras <parras@baylibre.com>
Fri, 24 Oct 2025 09:05:27 +0000 (11:05 +0200)
committerPaul-Antoine Arras <parras@baylibre.com>
Mon, 27 Oct 2025 14:56:15 +0000 (15:56 +0100)
commitd9f720f2ce39b56e91209c0283049f8e0ae8e7fc
tree1dbab8bc60ca031e650a1861fa5c60a16bfecf35
parentc91fc64318132f965c6c686d4142f948e58ec5d8
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.
gcc/cp/parser.cc