[Bug 37537] New: lldb gets confused by two structs with the same name

Bug ID 37537
Summary lldb gets confused by two structs with the same name
Product lldb
Version unspecified
Hardware PC
OS Linux
Status NEW
Severity enhancement
Priority P
Component All Bugs
Assignee lldb-dev@lists.llvm.org
Reporter labath@google.com
CC llvm-bugs@lists.llvm.org

The simplest such example is:
struct sbar {
  void foo();
};
void sbar::foo() {}

void ffbar() {
  struct sbar {
    void foo() {}
  };
  sbar a;
  a.foo();
}

lldb will fail to parse the inner struct sbar, presumably because it has the
same name as the outer one (the problem goes away if I rename one of them).
This results in the "foo" method of the inner struct being incorrectly
classified (so e.g., "breakpoint set --method foo" will ignore it), but it
probably has other consequences as well.