[Bug middle-end/122378] [16 Regression] FAIL: c-c++-common/gomp/attrs-metadirective-2.c -std=gnu++11 (test for excess errors) by r16-4540-g80af807e52e4f4
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Oct 27 14:57:09 GMT 2025
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 <parras@gcc.gnu.org>:
https://gcc.gnu.org/g:d9f720f2ce39b56e91209c0283049f8e0ae8e7fc
commit r16-4658-gd9f720f2ce39b56e91209c0283049f8e0ae8e7fc
Author: Paul-Antoine Arras <parras@baylibre.com>
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.
More information about the Gcc-bugs
mailing list