[llvm-bugs] [Bug 25227] New: Crash while refactor function with range based for
via llvm-bugs
llvm-bugs at lists.llvm.org
Sat Oct 17 11:46:22 PDT 2015
https://llvm.org/bugs/show_bug.cgi?id=25227
Bug ID: 25227
Summary: Crash while refactor function with range based for
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Frontend
Assignee: unassignedclangbugs at nondot.org
Reporter: jvapen at gmail.com
CC: llvm-bugs at lists.llvm.org
Classification: Unclassified
Created attachment 15089
--> https://llvm.org/bugs/attachment.cgi?id=15089&action=edit
Reproduction scenario
error: use of undeclared identifier 'tests'; did you mean 'test'? [Semantic
Issue]
for (std::unique_ptr<ITestCase> &test : tests)
^~~~~
test
Trunk revision: 250612
Failed assertion:
void
clang::ClassTemplateSpecializationDecl::setPointOfInstantiation(clang::SourceLocation):
Assertion `Loc.isValid() && "point of instantiation must be valid!"' failed.
Related trace:
clang::Sema::InstantiateClass(clang::SourceLocation, clang::CXXRecordDecl*,
clang::CXXRecordDecl*, clang::MultiLevelTemplateArgumentList const&,
clang::TemplateSpecializationKind, bool) + 358
clang::Sema::InstantiateClassTemplateSpecialization(clang::SourceLocation,
clang::ClassTemplateSpecializationDecl*, clang::TemplateSpecializationKind,
bool) + 2287
clang::Sema::RequireCompleteTypeImpl(clang::SourceLocation, clang::QualType,
clang::Sema::TypeDiagnoser&) + 1112
clang::Sema::RequireCompleteType(clang::SourceLocation, clang::QualType,
clang::Sema::TypeDiagnoser&) + 86
clang::Sema::RequireCompleteType(clang::SourceLocation, clang::QualType,
unsigned int) + 82
clang::Sema::BuildCXXForRangeStmt(clang::SourceLocation, clang::SourceLocation,
clang::Stmt*, clang::Stmt*, clang::Expr*, clang::Expr*, clang::Stmt*,
clang::SourceLocation, clang::Sema::BuildForRangeKind) + 1082
clang::Sema::ActOnCXXForRangeStmt(clang::SourceLocation, clang::Stmt*,
clang::SourceLocation, clang::Expr*, clang::SourceLocation,
clang::Sema::BuildForRangeKind) + 970
clang::Parser::ParseForStatement(clang::SourceLocation*) + 4863
clang::Parser::ParseStatementOrDeclarationAfterAttributes(llvm::SmallVector<clang::Stmt*,
32u>&, bool, clang::SourceLocation*, clang::Parser::ParsedAttributesWithRange&)
+ 2888
clang::Parser::ParseStatementOrDeclaration(llvm::SmallVector<clang::Stmt*,
32u>&, bool, clang::SourceLocation*) + 125
clang::Parser::ParseCompoundStatementBody(bool) + 1282
clang::Parser::ParseFunctionStatementBody(clang::Decl*,
clang::Parser::ParseScope&) + 316
clang::Parser::ParseFunctionDefinition(clang::ParsingDeclarator&,
clang::Parser::ParsedTemplateInfo const&, clang::Parser::LateParsedAttrList*) +
3639
clang::Parser::ParseDeclGroup(clang::ParsingDeclSpec&, unsigned int,
clang::SourceLocation*, clang::Parser::ForRangeInit*) + 995
clang::Parser::ParseDeclOrFunctionDefInternal(clang::Parser::ParsedAttributesWithRange&,
clang::ParsingDeclSpec&, clang::AccessSpecifier) + 1163
clang::Parser::ParseDeclarationOrFunctionDefinition(clang::Parser::ParsedAttributesWithRange&,
clang::ParsingDeclSpec*, clang::AccessSpecifier) + 147
clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&,
clang::ParsingDeclSpec*) + 3659
clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&) + 1030
clang::ParseAST(clang::Sema&, bool, bool) + 949
clang::ASTFrontendAction::ExecuteAction() + 511
clang::CodeGenAction::ExecuteAction() + 5776
clang::FrontendAction::Execute() + 112
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 1416
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 4193
cc1_main(llvm::ArrayRef<char const*>, char const*, void*) + 4544
--
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/20151017/060fd392/attachment.html>
More information about the llvm-bugs
mailing list