[Bug 21795] New: lldb crashes when a user variable is declared within a block expression

Bug ID 21795
Summary lldb crashes when a user variable is declared within a block expression
Product lldb
Version unspecified
Hardware Macintosh
OS All
Status NEW
Severity normal
Priority P
Component All Bugs
Assignee lldb-dev@cs.uiuc.edu
Reporter jalkut@red-sweater.com
Classification Unclassified

Created attachment 13446 [details]
Crash log obtained by trying to declare a user variable within block scope.

I'm playing around with trying to save block expressions to user variables, and
while doing so I ended up trying to declare some internal block variables as
user variables as well. This reliably crashes lldb on my machine:

lldb -n TextEdit (or any process)

This works:

expr void (^$myBlock)(void) = ^void(void){ int hello; }

This crashes:

expr void (^$myBlock)(void) = ^void(void){ int $hello; }

Typical crash log attached.