aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/parser.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cp/parser.cc')
-rw-r--r--gcc/cp/parser.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/cp/parser.cc b/gcc/cp/parser.cc
index 0917a16..5836122 100644
--- a/gcc/cp/parser.cc
+++ b/gcc/cp/parser.cc
@@ -32724,6 +32724,8 @@ cp_parser_label_declaration (cp_parser* parser)
/* If we failed, stop. */
if (identifier == error_mark_node)
break;
+ if (parser->omp_metadirective_state)
+ identifier = mangle_metadirective_region_label (parser, identifier);
/* Declare it as a label. */
finish_label_decl (identifier);
/* If the next token is a `;', stop. */