[llvm-bugs] [Bug 34800] New: Assertion failure in clang::threadSafety::til::Project::Project
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Oct 2 05:32:07 PDT 2017
https://bugs.llvm.org/show_bug.cgi?id=34800
Bug ID: 34800
Summary: Assertion failure in
clang::threadSafety::til::Project::Project
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Frontend
Assignee: unassignedclangbugs at nondot.org
Reporter: alexfh at google.com
CC: llvm-bugs at lists.llvm.org
$ cat test-clang__threadSafety__til__Project__Project.cc
struct A {
operator int() const;
};
struct B {
bool g() __attribute__((locks_excluded(h)));
int h;
};
struct C {
B* operator[](int);
};
C c;
void f() { c[A()]->g(); }
$ clang-tidy -checks=-*,modernize-use-override
test-clang__threadSafety__til__Project__Project.cc -- -std=c++11
-Wthread-safety-analysis
assertion failed at llvm/tools/clang/include/clang/AST/Decl.h:238 in
llvm::StringRef clang::NamedDecl::getName() const: Name.isIdentifier() && "Name
is not a simple identifier"
@ 0x52af10a __assert_fail
@ 0x728ad4 clang::NamedDecl::getName()
@ 0x2b96016 clang::threadSafety::til::Project::Project()
@ 0x2b9262f
clang::threadSafety::SExprBuilder::translateMemberExpr()
@ 0x2b920cc clang::threadSafety::SExprBuilder::translate()
@ 0x2b9275a
clang::threadSafety::SExprBuilder::translateCallExpr()
@ 0x2b929ac
clang::threadSafety::SExprBuilder::translateCXXMemberCallExpr()
@ 0x2b92112 clang::threadSafety::SExprBuilder::translate()
@ 0x2b93596
clang::threadSafety::SExprBuilder::translateCastExpr()
@ 0x2b92315 clang::threadSafety::SExprBuilder::translate()
@ 0x2b927fc
clang::threadSafety::SExprBuilder::translateCallExpr()
@ 0x2b92a6b
clang::threadSafety::SExprBuilder::translateCXXOperatorCallExpr()
@ 0x2b92134 clang::threadSafety::SExprBuilder::translate()
@ 0x2b92501
clang::threadSafety::SExprBuilder::translateCXXThisExpr()
@ 0x2b920aa clang::threadSafety::SExprBuilder::translate()
@ 0x2b92595
clang::threadSafety::SExprBuilder::translateMemberExpr()
@ 0x2b920cc clang::threadSafety::SExprBuilder::translate()
@ 0x2b91e99
clang::threadSafety::SExprBuilder::translateAttrExpr()
@ 0x2b91b71
clang::threadSafety::SExprBuilder::translateAttrExpr()
@ 0x2b14218 (anonymous
namespace)::BuildLockset::warnIfMutexHeld()
@ 0x2b00fa9 (anonymous namespace)::BuildLockset::handleCall()
@ 0x2b0f129 (anonymous namespace)::BuildLockset::VisitCallExpr()
@ 0x2b0f198 clang::StmtVisitorBase<>::VisitCXXMemberCallExpr()
@ 0x2aff4c5 clang::StmtVisitorBase<>::Visit()
@ 0x2afab2d (anonymous
namespace)::ThreadSafetyAnalyzer::runAnalysis()
@ 0x2af99c5 clang::threadSafety::runThreadSafetyAnalysis()
@ 0x2a4e00b clang::sema::AnalysisBasedWarnings::IssueWarnings()
@ 0x2a23291 clang::Sema::PopFunctionScopeInfo()
@ 0x291cd57 clang::Sema::ActOnFinishFunctionBody()
--
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/20171002/4f4e1445/attachment.html>
More information about the llvm-bugs
mailing list