[LLVMbugs] [Bug 15497] New: CXXRecordDecl can't iterate its static member variables
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue Mar 12 10:41:58 PDT 2013
http://llvm.org/bugs/show_bug.cgi?id=15497
Bug ID: 15497
Summary: CXXRecordDecl can't iterate its static member
variables
Product: clang
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: -New Bugs
Assignee: unassignedclangbugs at nondot.org
Reporter: thomas at techsoft3d.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
CXXRecordDecl::decls_begin() through CXXRecordDecl::decls_end() will not yield
any Decl's for static members defined in the class the CXXRecordDecl
represents.
Sample C++ code:
class Object {
static int const staticMember;
};
int const Object::staticMember = 0;
Sample Clang code:
CXXRecordDecl const * rec = ....
for (auto it = rec->decls_begin(); it != rec->decls_end(); ++it) {
Decl const * decl = *it;
// decl is never the Decl for "staticMember"
}
--
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/20130312/6b42bcd9/attachment.html>
More information about the llvm-bugs
mailing list