[llvm-bugs] [Bug 24872] New: clang-check: Assertion `Name.isIdentifier() && "Name is not a simple identifier"' failed.

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Sep 18 02:09:00 PDT 2015


https://llvm.org/bugs/show_bug.cgi?id=24872

            Bug ID: 24872
           Summary: clang-check: Assertion `Name.isIdentifier() && "Name
                    is not a simple identifier"' failed.
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: kberezovsky at gmail.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

clang-check -version
LLVM (http://llvm.org/):
  LLVM version 3.8.0svn
  DEBUG build with assertions.
  Built Sep  8 2015 (03:41:55).
  Default target: x86_64-unknown-linux-gnu
  Host CPU: sandybridge

clang-check -ast-print tools/clang/lib/Tooling/CompilationDatabase.cpp
        using BaseT::clang-check:
/home/user/llvm/llvm/tools/clang/include/clang/AST/Decl.h:170: llvm::StringRef
clang::NamedDecl::getName() const: Assertion `Name.isIdentifier() && "Name is
not a simple identifier"' failed.
#0 0xf59d25 llvm::sys::PrintStackTrace(llvm::raw_ostream&)
(/home/user/llvm/build/bin/clang-check+0xf59d25)
#1 0xf5a079 PrintStackTraceSignalHandler(void*)
(/home/user/llvm/build/bin/clang-check+0xf5a079)
#2 0xf585fc llvm::sys::RunSignalHandlers()
(/home/user/llvm/build/bin/clang-check+0xf585fc)
#3 0xf58b88 SignalHandler(int) (/home/user/llvm/build/bin/clang-check+0xf58b88)
#4 0x7fba6e1b4d10 __restore_rt (/lib/x86_64-linux-gnu/libpthread.so.0+0x10d10)
#5 0x7fba6d5e2267 gsignal (/lib/x86_64-linux-gnu/libc.so.6+0x35267)
#6 0x7fba6d5e3eca abort (/lib/x86_64-linux-gnu/libc.so.6+0x36eca)
#7 0x7fba6d5db03d (/lib/x86_64-linux-gnu/libc.so.6+0x2e03d)
#8 0x7fba6d5db0f2 (/lib/x86_64-linux-gnu/libc.so.6+0x2e0f2)
#9 0x101874d clang::NamedDecl::getName() const
(/home/user/llvm/build/bin/clang-check+0x101874d)
#10 0x2893761 (anonymous
namespace)::DeclPrinter::VisitUnresolvedUsingValueDecl(clang::UnresolvedUsingValueDecl*)
(/home/user/llvm/build/bin/clang-check+0x2893761)
#11 0x2893e35 clang::declvisitor::Base<clang::declvisitor::make_ptr, (anonymous
namespace)::DeclPrinter, void>::Visit(clang::Decl*)
(/home/user/llvm/build/bin/clang-check+0x2893e35)
#12 0x288e30d (anonymous
namespace)::DeclPrinter::VisitDeclContext(clang::DeclContext*, bool)
(/home/user/llvm/build/bin/clang-check+0x288e30d)
#13 0x2890eaa (anonymous
namespace)::DeclPrinter::VisitCXXRecordDecl(clang::CXXRecordDecl*)
(/home/user/llvm/build/bin/clang-check+0x2890eaa)
#14 0x2893b95 clang::declvisitor::Base<clang::declvisitor::make_ptr, (anonymous
namespace)::DeclPrinter, void>::Visit(clang::Decl*)
(/home/user/llvm/build/bin/clang-check+0x2893b95)
#15 0x2891589 (anonymous
namespace)::DeclPrinter::VisitTemplateDecl(clang::TemplateDecl const*)
(/home/user/llvm/build/bin/clang-check+0x2891589)
#16 0x2893ec9 clang::declvisitor::Base<clang::declvisitor::make_ptr, (anonymous
namespace)::DeclPrinter,
void>::VisitRedeclarableTemplateDecl(clang::RedeclarableTemplateDecl*)
(/home/user/llvm/build/bin/clang-check+0x2893ec9)
#17 0x28917ad (anonymous
namespace)::DeclPrinter::VisitClassTemplateDecl(clang::ClassTemplateDecl*)
(/home/user/llvm/build/bin/clang-check+0x28917ad)
#18 0x2893aed clang::declvisitor::Base<clang::declvisitor::make_ptr, (anonymous
namespace)::DeclPrinter, void>::Visit(clang::Decl*)
(/home/user/llvm/build/bin/clang-check+0x2893aed)
#19 0x288e30d (anonymous
namespace)::DeclPrinter::VisitDeclContext(clang::DeclContext*, bool)
(/home/user/llvm/build/bin/clang-check+0x288e30d)
#20 0x2890a81 (anonymous
namespace)::DeclPrinter::VisitNamespaceDecl(clang::NamespaceDecl*)
(/home/user/llvm/build/bin/clang-check+0x2890a81)
#21 0x28939fd clang::declvisitor::Base<clang::declvisitor::make_ptr, (anonymous
namespace)::DeclPrinter, void>::Visit(clang::Decl*)
(/home/user/llvm/build/bin/clang-check+0x28939fd)
#22 0x288e30d (anonymous
namespace)::DeclPrinter::VisitDeclContext(clang::DeclContext*, bool)
(/home/user/llvm/build/bin/clang-check+0x288e30d)
#23 0x288e636 (anonymous
namespace)::DeclPrinter::VisitTranslationUnitDecl(clang::TranslationUnitDecl*)
(/home/user/llvm/build/bin/clang-check+0x288e636)
#24 0x2893e89 clang::declvisitor::Base<clang::declvisitor::make_ptr, (anonymous
namespace)::DeclPrinter, void>::Visit(clang::Decl*)
(/home/user/llvm/build/bin/clang-check+0x2893e89)
#25 0x288d80c clang::Decl::print(llvm::raw_ostream&, clang::PrintingPolicy
const&, unsigned int, bool) const
(/home/user/llvm/build/bin/clang-check+0x288d80c)
#26 0x288d763 clang::Decl::print(llvm::raw_ostream&, unsigned int, bool) const
(/home/user/llvm/build/bin/clang-check+0x288d763)
#27 0xf6d770 (anonymous namespace)::ASTPrinter::print(clang::Decl*)
(/home/user/llvm/build/bin/clang-check+0xf6d770)
#28 0xf6d36f (anonymous
namespace)::ASTPrinter::HandleTranslationUnit(clang::ASTContext&)
(/home/user/llvm/build/bin/clang-check+0xf6d36f)
#29 0x1d53d53 clang::ParseAST(clang::Sema&, bool, bool)
(/home/user/llvm/build/bin/clang-check+0x1d53d53)
#30 0x10141ae clang::ASTFrontendAction::ExecuteAction()
(/home/user/llvm/build/bin/clang-check+0x10141ae)
#31 0x1013c38 clang::FrontendAction::Execute()
(/home/user/llvm/build/bin/clang-check+0x1013c38)
#32 0x1049026 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&)
(/home/user/llvm/build/bin/clang-check+0x1049026)
#33 0x114f338
clang::tooling::FrontendActionFactory::runInvocation(clang::CompilerInvocation*,
clang::FileManager*, std::shared_ptr<clang::PCHContainerOperations>,
clang::DiagnosticConsumer*) (/home/user/llvm/build/bin/clang-check+0x114f338)
#34 0x114f1ab clang::tooling::ToolInvocation::runInvocation(char const*,
clang::driver::Compilation*, clang::CompilerInvocation*,
std::shared_ptr<clang::PCHContainerOperations>)
(/home/user/llvm/build/bin/clang-check+0x114f1ab)
#35 0x114f017 clang::tooling::ToolInvocation::run()
(/home/user/llvm/build/bin/clang-check+0x114f017)
#36 0x114fd3e clang::tooling::ClangTool::run(clang::tooling::ToolAction*)
(/home/user/llvm/build/bin/clang-check+0x114fd3e)
#37 0x408952 main (/home/user/llvm/build/bin/clang-check+0x408952)
#38 0x7fba6d5cda40 __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x20a40)
#39 0x407599 _start (/home/user/llvm/build/bin/clang-check+0x407599)
Aborted (core dumped)

-- 
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/20150918/af1c8c47/attachment-0001.html>


More information about the llvm-bugs mailing list