[llvm-bugs] [Bug 37537] New: lldb gets confused by two structs with the same name
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon May 21 03:01:26 PDT 2018
https://bugs.llvm.org/show_bug.cgi?id=37537
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;
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.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180521/89c9455c/attachment.html>
More information about the llvm-bugs
mailing list