http://llvm.org/bugs/show_bug.cgi?id=15401
Bug ID: 15401
Summary: static members of structs and classes have incorrect
visibility
Product: lldb
Version: unspecified
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: All Bugs
Assignee: [email protected]
Reporter: [email protected]
Classification: Unclassified
Expression evaluation using static members of structs/classes such as:
struct my_struct {
static int my_static;
};
int my_struct::my_static = 2;
my_struct test;
expression my_struct::my_static
expression test.my_static
results in the error
'no member named 'my_static' in 'my_struct'"
Reproducer:
./dotest.py -A x86_64 -v lang/cpp/static_members
As illustrated by the above test, an attempt to 'print my_static' (outside of
the scope of my_struct) succeeds even though it should be visible only as
my_struct::my_static.
As illustrated by the above test, the struct layout performed during expression
evaluation is 4 bytes (short + char + default alignment) rather than 24 bytes.
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
lldb-dev mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev