[Bug 18184] New: Cannot refer to a variable called 'id' from a print expression

Bug ID 18184
Summary Cannot refer to a variable called ‘id’ from a print expression
Product lldb
Version unspecified
Hardware PC
OS MacOS X
Status NEW
Severity normal
Priority P
Component All Bugs
Assignee lldb-dev@cs.uiuc.edu
Reporter charlie@charliesomerville.com
Classification Unclassified

It seems like it's impossible to evaluate an expression containing a reference
to a variable called 'id' in LLDB:

    (lldb) print rb_id2str(id)
    error: unexpected type name 'id': expected expression
    error: 1 errors parsing expression

This might be because 'id' is a type in Objective-C. However since I'm using
LLDB on a C project, 'id' should be treated as a local variable reference.

lldb --version outputs 'lldb-300.2.53'.