[LLVMbugs] [Bug 6365] Assertion failed: (Access != AS_none && "Access specifier is AS_none inside a record decl")
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sun Feb 21 10:27:55 PST 2010
http://www.llvm.org/bugs/show_bug.cgi?id=6365
--- Comment #2 from Albert Zeyer <ich at az2000.de> 2010-02-21 12:27:55 CST ---
With some output on cerr instead of the assert, I am getting this:
(std::_Rb_tree) ...
template <typename _Key_compare, bool _Is_pod_comparator =
std::__is_pod<_Key_compare>::__value> struct _Rb_tree_impl : public
_Node_allocator {
public:
_Key_compare _M_key_compare;
struct std::_Rb_tree_node_base _M_header;
size_type _M_node_count;
_Rb_tree_impl<type-parameter-1-0,
_Is_pod_comparator>(_Node_allocator const &__a = _Node_allocator(),
_Key_compare const &__comp = _Key_compare()) : _Node_allocator(__a),
_M_key_compare(__comp), _M_node_count(0) {
this->_M_header._M_color = _S_red;
this->_M_header._M_parent = 0;
this->_M_header._M_left = & this->_M_header;
this->_M_header._M_right = & this->_M_header;
}
};
ERROR: Access == AS_none
WRONGWRONG_AS_none:
struct _Rb_tree_impl : public _Node_allocator {
public:
_Key_compare _M_key_compare;
struct std::_Rb_tree_node_base _M_header;
size_type _M_node_count;
_Rb_tree_impl<type-parameter-1-0, 1>(_Node_allocator const &__a =
_Node_allocator(), _Key_compare const &__comp = _Key_compare()) :
_Node_allocator(__a), _M_key_compare(__comp), _M_node_count(0) {
this->_M_header._M_color = _S_red;
this->_M_header._M_parent = 0;
this->_M_header._M_left = & this->_M_header;
this->_M_header._M_right = & this->_M_header;
}
};
protected:
_Rb_tree_impl<_Compare> _M_impl;
_Base_ptr &_M_root() {
return this->_M_impl._M_header._M_parent;
}
_Const_Base_ptr _M_root() {
return this->_M_impl._M_header._M_parent;
}
...
--
Configure bugmail: http://www.llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
More information about the llvm-bugs
mailing list