[llvm-bugs] [Bug 27401] New: Assertion failed: ((MoveConstructor->isDefaulted() && MoveConstructor->isMoveConstructor()

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Apr 18 04:52:00 PDT 2016


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

            Bug ID: 27401
           Summary: Assertion failed: ((MoveConstructor->isDefaulted() &&
                    MoveConstructor->isMoveConstructor()
           Product: clang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Modules
          Assignee: unassignedclangbugs at nondot.org
          Reporter: vvasilev at cern.ch
                CC: dgregor at apple.com, llvm-bugs at lists.llvm.org
    Classification: Unclassified

Assertion failed: ((MoveConstructor->isDefaulted() &&
MoveConstructor->isMoveConstructor() &&
!MoveConstructor->doesThisDeclarationHaveABody() &&
!MoveConstructor->isDeleted()) && "DefineImplicitMoveConstructor - call it for
implicit move ctor"), function DefineImplicitMoveConstructor, file
/Users/vvassilev/workspace/llvm-git/src/tools/clang/lib/Sema/SemaDeclCXX.cpp,
line 11154.
0  clang                    0x000000010786dcfb
llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 43
1  clang                    0x000000010786cf76 llvm::sys::RunSignalHandlers() +
70
2  clang                    0x000000010786e3a2 SignalHandler(int) + 322
3  libsystem_platform.dylib 0x00007fff8fe0ceaa _sigtramp + 26
4  clang                    0x00000001094922f7 clang::Stmt::StatisticsEnabled +
58751
5  clang                    0x000000010786e1b6 abort + 22
6  clang                    0x000000010786e191 __assert_rtn + 81
7  clang                    0x00000001085fdd5e
clang::Sema::DefineImplicitMoveConstructor(clang::SourceLocation,
clang::CXXConstructorDecl*) + 798
8  clang                    0x00000001086915dd
clang::Sema::MarkFunctionReferenced(clang::SourceLocation,
clang::FunctionDecl*, bool) + 1149
9  clang                    0x00000001085fe765
clang::Sema::BuildCXXConstructExpr(clang::SourceLocation, clang::QualType,
clang::CXXConstructorDecl*, llvm::MutableArrayRef<clang::Expr*>, bool, bool,
bool, bool, unsigned int, clang::SourceRange) + 309
10 clang                    0x0000000108751c95
PerformConstructorInitialization(clang::Sema&, clang::InitializedEntity const&,
clang::InitializationKind const&, llvm::MutableArrayRef<clang::Expr*>,
clang::InitializationSequence::Step const&, bool&, bool, bool,
clang::SourceLocation, clang::SourceLocation) + 1301
11 clang                    0x0000000108748345
clang::InitializationSequence::Perform(clang::Sema&, clang::InitializedEntity
const&, clang::InitializationKind const&, llvm::MutableArrayRef<clang::Expr*>,
clang::QualType*) + 4005
12 clang                    0x00000001087551b4
clang::Sema::PerformCopyInitialization(clang::InitializedEntity const&,
clang::SourceLocation, clang::ActionResult<clang::Expr*, true>, bool, bool) +
564
13 clang                    0x000000010866a2a0
clang::Sema::GatherArgumentsForCall(clang::SourceLocation,
clang::FunctionDecl*, clang::FunctionProtoType const*, unsigned int,
llvm::ArrayRef<clang::Expr*>, llvm::SmallVectorImpl<clang::Expr*>&,
clang::Sema::VariadicCallType, bool, bool) + 1088
14 clang                    0x00000001085ff206
clang::Sema::CompleteConstructorCall(clang::CXXConstructorDecl*,
llvm::MutableArrayRef<clang::Expr*>, clang::SourceLocation,
llvm::SmallVectorImpl<clang::Expr*>&, bool, bool) + 342
15 clang                    0x0000000108751951
PerformConstructorInitialization(clang::Sema&, clang::InitializedEntity const&,
clang::InitializationKind const&, llvm::MutableArrayRef<clang::Expr*>,
clang::InitializationSequence::Step const&, bool&, bool, bool,
clang::SourceLocation, clang::SourceLocation) + 465
16 clang                    0x0000000108748345
clang::InitializationSequence::Perform(clang::Sema&, clang::InitializedEntity
const&, clang::InitializationKind const&, llvm::MutableArrayRef<clang::Expr*>,
clang::QualType*) + 4005
17 clang                    0x00000001085da4e5
clang::Sema::BuildBaseInitializer(clang::QualType, clang::TypeSourceInfo*,
clang::Expr*, clang::CXXRecordDecl*, clang::SourceLocation) + 2133
18 clang                    0x0000000108923f37
clang::Sema::InstantiateMemInitializers(clang::CXXConstructorDecl*,
clang::CXXConstructorDecl const*, clang::MultiLevelTemplateArgumentList const&)
+ 1015
19 clang                    0x00000001089237e3
clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation,
clang::FunctionDecl*, bool, bool) + 2723
20 clang                    0x000000010891da5b
clang::Sema::PerformPendingInstantiations(bool) + 603
21 clang                    0x00000001084bd9e6
clang::Sema::ActOnEndOfTranslationUnit() + 278
22 clang                    0x0000000108338334
clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&) + 644
23 clang                    0x000000010829d2b5 clang::ParseAST(clang::Sema&,
bool, bool) + 501
24 clang                    0x0000000107d2fc4b clang::FrontendAction::Execute()
+ 75
25 clang                    0x0000000107cf5831
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 1089
26 clang                    0x0000000107d6fa99
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 4713
27 clang                    0x0000000106e73c06 cc1_main(llvm::ArrayRef<char
const*>, char const*, void*) + 1062
28 clang                    0x0000000106e727e0 main + 11504
29 libdyld.dylib            0x00007fff85e365ad start + 1
30 libdyld.dylib            0x0000000000000024 start + 2048694904

-- 
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/20160418/7ef99d11/attachment-0001.html>


More information about the llvm-bugs mailing list