[Bug 31267] New: Can't reference variable named 'template'

Bug ID 31267
Summary Can’t reference variable named ‘template’
Product lldb
Version unspecified
Hardware Macintosh
OS All
Status NEW
Severity normal
Priority P
Component All Bugs
Assignee lldb-dev@lists.llvm.org
Reporter mth@xmission.com
CC llvm-bugs@lists.llvm.org
Classification Unclassified

In an Objective-C program, a local variable named 'template' is visible in the
local variables list, but can't be referenced by command lines.  For example, 

  po template

gives a cryptic error message rather than printing the value.  I assume the
problem may be related to the fact that 'template' is a reserved word in one of
the other languages supported by lldb (C++), so this may be indicative of a
more general problem of not being able to reference variables which have names
that coincide with reserved words in other supported languages, but I have not
verified this.