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

via lldb-dev lldb-dev at lists.llvm.org
Mon May 21 03:01:26 PDT 2018


            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 at lists.llvm.org
          Reporter: labath at google.com
                CC: llvm-bugs at lists.llvm.org

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

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

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.

You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20180521/ab9bb777/attachment.html>

More information about the lldb-dev mailing list