summaryrefslogtreecommitdiff
path: root/TAO/TAO_IDL/ast/ast_annotation_decl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/TAO_IDL/ast/ast_annotation_decl.cpp')
-rw-r--r--TAO/TAO_IDL/ast/ast_annotation_decl.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/TAO/TAO_IDL/ast/ast_annotation_decl.cpp b/TAO/TAO_IDL/ast/ast_annotation_decl.cpp
index 5ccaba059f2..45eab38d7d6 100644
--- a/TAO/TAO_IDL/ast/ast_annotation_decl.cpp
+++ b/TAO/TAO_IDL/ast/ast_annotation_decl.cpp
@@ -46,6 +46,7 @@ IMPL_NARROW_FROM_SCOPE (AST_Annotation_Decl)
void
AST_Annotation_Decl::escape_name (Identifier *name)
{
+ FE_Utils::original_local_name (name); // Annotations can't clash with C++ keywords
char *old_name = name->get_string ();
char *new_name = new char [ACE_OS::strlen (old_name) + 2]; // '@' and '\0'
if (new_name)