<html>
<head>
<base href="http://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - static members of structs and classes have incorrect visibility"
href="http://llvm.org/bugs/show_bug.cgi?id=15401">15401</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>static members of structs and classes have incorrect visibility
</td>
</tr>
<tr>
<th>Product</th>
<td>lldb
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>All Bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>lldb-dev@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Reporter</th>
<td>ashok.thirumurthi@intel.com
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>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.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>