[llvm-bugs] [Bug 27739] New: Assertion `(CopyConstructor->isDefaulted() && CopyConstructor->isCopyConstructor() && !CopyConstructor->doesThisDeclarationHaveABody() && !CopyConstructor->isDeleted()) && "DefineImplicitCopyConstructor - call it for implicit copy ctor"' failed

via llvm-bugs llvm-bugs at lists.llvm.org
Fri May 13 14:36:41 PDT 2016


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

            Bug ID: 27739
           Summary: Assertion `(CopyConstructor->isDefaulted() &&
                    CopyConstructor->isCopyConstructor() &&
                    !CopyConstructor->doesThisDeclarationHaveABody() &&
                    !CopyConstructor->isDeleted()) &&
                    "DefineImplicitCopyConstructor - call it for implicit
                    copy ctor"' failed
           Product: clang
           Version: unspecified
          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

clang++ -cc1  -I includes/home/vvassilev/workspace/root/obj/include
-internal-isystem includes/usr/include/c++/4.8  -internal-isystem
includes/usr/include/x86_64-linux-gnu/c++/4.8   -internal-isystem
includes/home/vvassilev/workspace/llvm-git/inst_release/lib/clang/3.9.0/include
-internal-externc-isystem includes/usr/include/x86_64-linux-gnu 
-internal-externc-isystem includes/usr/include  -std=c++11   
-fmodules-cache-path=./mod_cache/
-fmodule-map-file=includes/home/vvassilev/workspace/root/obj/include/module.modulemap
-nostdsysteminc -fsyntax-only -fmodules  -fcxx-exceptions -x c++
DataInputHandler.cxx
DataInputHandler.cxx:3:19: warning: ISO C++11 does not allow conversion from
string literal to 'char *'
  if (fInputTrees[""].empty())
                  ^
DataInputHandler.cxx:4:24: warning: ISO C++11 does not allow conversion from
string literal to 'char *'
    fExplicitTrainTest[""];
                       ^
clang++:
/home/vvassilev/workspace/llvm-git/src/tools/clang/lib/Sema/SemaDeclCXX.cpp:11038:
void clang::Sema::DefineImplicitCopyConstructor(clang::SourceLocation,
clang::CXXConstructorDecl*): Assertion `(CopyConstructor->isDefaulted() &&
CopyConstructor->isCopyConstructor() &&
!CopyConstructor->doesThisDeclarationHaveABody() &&
!CopyConstructor->isDeleted()) && "DefineImplicitCopyConstructor - call it for
implicit copy ctor"' failed.
0  clang++         0x00000000012591d5
llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 37
1  clang++         0x0000000001256f86 llvm::sys::RunSignalHandlers() + 54
2  clang++         0x00000000012571b1
3  libpthread.so.0 0x00007fdfb989e340
4  libc.so.6       0x00007fdfb8abccc9 gsignal + 57
5  libc.so.6       0x00007fdfb8ac00d8 abort + 328
6  libc.so.6       0x00007fdfb8ab5b86
7  libc.so.6       0x00007fdfb8ab5c32
8  clang++         0x0000000001fef94f
clang::Sema::DefineImplicitCopyConstructor(clang::SourceLocation,
clang::CXXConstructorDecl*) + 623
9  clang++         0x0000000001feff23
clang::Sema::SetDeclDefaulted(clang::Decl*, clang::SourceLocation) + 403
10 clang++         0x00000000022d8770
clang::TemplateDeclInstantiator::VisitCXXMethodDecl(clang::CXXMethodDecl*,
clang::TemplateParameterList*, bool) + 3808
11 clang++         0x00000000022a5c17
clang::Sema::InstantiateClass(clang::SourceLocation, clang::CXXRecordDecl*,
clang::CXXRecordDecl*, clang::MultiLevelTemplateArgumentList const&,
clang::TemplateSpecializationKind, bool) + 1143
12 clang++         0x00000000022a6c42
clang::Sema::InstantiateClassTemplateSpecialization(clang::SourceLocation,
clang::ClassTemplateSpecializationDecl*, clang::TemplateSpecializationKind,
bool) + 2082
13 clang++         0x00000000022f8219
clang::Sema::RequireCompleteTypeImpl(clang::SourceLocation, clang::QualType,
clang::Sema::TypeDiagnoser*) + 1577
14 clang++         0x00000000022f8615
clang::Sema::RequireCompleteType(clang::SourceLocation, clang::QualType,
clang::Sema::TypeDiagnoser&) + 21
15 clang++         0x000000000202f539
clang::Sema::CheckCallReturnType(clang::QualType, clang::SourceLocation,
clang::CallExpr*, clang::FunctionDecl*) + 233
16 clang++         0x000000000207015a
clang::Sema::BuildResolvedCallExpr(clang::Expr*, clang::NamedDecl*,
clang::SourceLocation, llvm::ArrayRef<clang::Expr*>, clang::SourceLocation,
clang::Expr*, bool) + 1658
17 clang++         0x00000000021c8450
18 clang++         0x00000000021c898c
clang::Sema::BuildOverloadedCallExpr(clang::Scope*, clang::Expr*,
clang::UnresolvedLookupExpr*, clang::SourceLocation,
llvm::MutableArrayRef<clang::Expr*>, clang::SourceLocation, clang::Expr*, bool,
bool) + 508
19 clang++         0x00000000020717df clang::Sema::ActOnCallExpr(clang::Scope*,
clang::Expr*, clang::SourceLocation, llvm::MutableArrayRef<clang::Expr*>,
clang::SourceLocation, clang::Expr*, bool) + 3919
20 clang++         0x00000000022a091a
21 clang++         0x000000000229af2a
22 clang++         0x000000000229c4e0
23 clang++         0x000000000229c17a
24 clang++         0x00000000022a08c4
25 clang++         0x000000000229af2a
26 clang++         0x000000000229c4e0
27 clang++         0x000000000229c994
clang::Sema::SubstInitializer(clang::Expr*,
clang::MultiLevelTemplateArgumentList const&, bool) + 84
28 clang++         0x00000000022ca0e1
clang::Sema::InstantiateVariableInitializer(clang::VarDecl*, clang::VarDecl*,
clang::MultiLevelTemplateArgumentList const&) + 305
29 clang++         0x00000000022ce2df
clang::Sema::BuildVariableInstantiation(clang::VarDecl*, clang::VarDecl*,
clang::MultiLevelTemplateArgumentList const&,
llvm::SmallVector<clang::Sema::LateInstantiatedAttribute, 16u>*,
clang::DeclContext*, clang::LocalInstantiationScope*, bool) + 959
30 clang++         0x00000000022ce96f
clang::TemplateDeclInstantiator::VisitVarDecl(clang::VarDecl*, bool) + 303
31 clang++         0x00000000022cfd15 clang::Sema::SubstDecl(clang::Decl*,
clang::DeclContext*, clang::MultiLevelTemplateArgumentList const&) + 165
32 clang++         0x00000000022991b9
33 clang++         0x00000000022aeeca
34 clang++         0x00000000022b0f20
35 clang++         0x00000000022b106b
36 clang++         0x00000000022aef22
37 clang++         0x00000000022b3308 clang::Sema::SubstStmt(clang::Stmt*,
clang::MultiLevelTemplateArgumentList const&) + 88
38 clang++         0x00000000022d31c3
clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation,
clang::FunctionDecl*, bool, bool, bool) + 2259
39 clang++         0x00000000022d35f2
clang::Sema::PerformPendingInstantiations(bool) + 226
40 clang++         0x0000000001edc7b7 clang::Sema::ActOnEndOfTranslationUnit()
+ 327
41 clang++         0x0000000001cf6abd
clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&) + 573
42 clang++         0x0000000001cef943 clang::ParseAST(clang::Sema&, bool, bool)
+ 371
43 clang++         0x0000000001689d56 clang::FrontendAction::Execute() + 518
44 clang++         0x0000000001665a4e
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 318
45 clang++         0x000000000170d15c
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 2300
46 clang++         0x00000000008ef5f8 cc1_main(llvm::ArrayRef<char const*>,
char const*, void*) + 1992
47 clang++         0x00000000008c9828 main + 6472
48 libc.so.6       0x00007fdfb8aa7ec5 __libc_start_main + 245
49 clang++         0x00000000008eb754
Stack dump:
0.    Program arguments:
/home/vvassilev/workspace/llvm-git/inst_release/bin/clang++ -cc1 -I
includes/home/vvassilev/workspace/root/obj/include -internal-isystem
includes/usr/include/c++/4.8 -internal-isystem
includes/usr/include/x86_64-linux-gnu/c++/4.8 -internal-isystem
includes/home/vvassilev/workspace/llvm-git/inst_release/lib/clang/3.9.0/include
-internal-externc-isystem includes/usr/include/x86_64-linux-gnu
-internal-externc-isystem includes/usr/include -std=c++11
-fmodules-cache-path=./mod_cache/
-fmodule-map-file=includes/home/vvassilev/workspace/root/obj/include/module.modulemap
-nostdsysteminc -fsyntax-only -fmodules -fcxx-exceptions -x c++
DataInputHandler.cxx 
1.    <eof> parser at end of file
2.   
/home/vvassilev/workspace/root/obj/bug_repro_3/includes/usr/include/c++/4.8/map:68:15:
instantiating function definition 'operator[]'
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/20160513/0305d579/attachment-0001.html>


More information about the llvm-bugs mailing list