[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:31:09 PST 2010


http://www.llvm.org/bugs/show_bug.cgi?id=6365

--- Comment #3 from Albert Zeyer <ich at az2000.de> 2010-02-21 12:31:08 CST ---
And with the assert, executed in gdb, I get this:

...

        void destroy_node(_Link_type __p)         {
            this->get_allocator().destroy(& __p->_M_value_field);
            this->_M_put_node(__p);
        }


        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;
            }


        };
Assertion failed: (Access != AS_none && "Access specifier is AS_none inside a
record decl"), function CheckAccessDeclContext, file DeclBase.cpp, line 443.

Program received signal SIGABRT, Aborted.
0x95429e42 in __kill ()
(gdb) bt
#0  0x95429e42 in __kill ()
#1  0x95429e34 in kill$UNIX2003 ()
#2  0x9549c23a in raise ()
#3  0x954a8679 in abort ()
#4  0x9549d3db in __assert_rtn ()
#5  0x004f856c in clang::Decl::CheckAccessDeclContext (this=0x41f1930) at
DeclBase.cpp:442
#6  0x0026a0a9 in clang::Decl::getAccess (this=0x41f1930) at DeclBase.h:245
#7  0x00509851 in (anonymous namespace)::DeclPrinter::VisitDeclContext
(this=0xbfffe338, DC=0x41ef2bc, Indent=true) at DeclPrinter.cpp:215
#8  0x0050a87f in (anonymous namespace)::DeclPrinter::VisitCXXRecordDecl
(this=0xbfffe338, D=0x41ef2a0) at DeclPrinter.cpp:588
#9  0x0050c0c4 in clang::DeclVisitor<(anonymous namespace)::DeclPrinter,
void>::Visit (this=0xbfffe338, D=0x41ef2a0) at DeclNodes.def:87
#10 0x005094a3 in (anonymous namespace)::DeclPrinter::VisitTemplateDecl
(this=0xbfffe338, D=0x41efba0) at DeclPrinter.cpp:660
#11 0x0050c49a in clang::DeclVisitor<(anonymous namespace)::DeclPrinter,
void>::VisitClassTemplateDecl (this=0xbfffe338, D=0x41efba0) at
DeclNodes.def:110
#12 0x0050c290 in clang::DeclVisitor<(anonymous namespace)::DeclPrinter,
void>::Visit (this=0xbfffe338, D=0x41efba0) at DeclNodes.def:110
#13 0x00509a98 in (anonymous namespace)::DeclPrinter::VisitDeclContext
(this=0xbfffe338, DC=0x41e8f18, Indent=true) at DeclPrinter.cpp:255
#14 0x0050a941 in (anonymous namespace)::DeclPrinter::VisitNamespaceDecl
(this=0xbfffe338, D=0x41e8f00) at DeclPrinter.cpp:541
#15 0x0050c023 in clang::DeclVisitor<(anonymous namespace)::DeclPrinter,
void>::Visit (this=0xbfffe338, D=0x41e8f00) at DeclNodes.def:78
#16 0x00509a98 in (anonymous namespace)::DeclPrinter::VisitDeclContext
(this=0xbfffe338, DC=0x3402c44, Indent=false) at DeclPrinter.cpp:255
#17 0x0050ab64 in (anonymous namespace)::DeclPrinter::VisitTranslationUnitDecl
(this=0xbfffe338, D=0x3402c30) at DeclPrinter.cpp:292
#18 0x0050c00c in clang::DeclVisitor<(anonymous namespace)::DeclPrinter,
void>::Visit (this=0xbfffe338, D=0x3402c30) at DeclNodes.def:76
#19 0x005094f5 in clang::Decl::print (this=0x3402c30, Out=@0x3405000,
Policy=@0xbfffe374, Indentation=0) at DeclPrinter.cpp:87
#20 0x0000a75b in (anonymous namespace)::ASTPrinter::HandleTranslationUnit
(this=0x3404ff0, Context=@0x3823400) at ASTConsumers.cpp:48
#21 0x00219a8e in clang::ParseAST (PP=@0x34025c0, Consumer=0x3404ff0,
Ctx=@0x3823400, PrintStats=false, CompleteTranslationUnit=true,
CompletionConsumer=0x0) at ParseAST.cpp:84
#22 0x0003dd2a in clang::ASTFrontendAction::ExecuteAction (this=0x34021f0) at
FrontendAction.cpp:219
#23 0x0003dc1a in clang::FrontendAction::Execute (this=0x34021f0) at
FrontendAction.cpp:149
#24 0x0001f9fd in clang::CompilerInstance::ExecuteAction (this=0xbfffeec4,
Act=@0x34021f0) at CompilerInstance.cpp:509
#25 0x00002914 in cc1_main (ArgBegin=0xbffff308, ArgEnd=0xbffff330,
Argv0=0xbffff3ec "/Users/az/Programmierung/CppIDE/llvm-src/Debug/bin/clang++",
MainAddr=0x56d8) at cc1_main.cpp:269
#26 0x00006585 in main (argc=12, argv=0xbffff300) at driver.cpp:209
(gdb)

-- 
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