[LLVMbugs] [Bug 24070] New: crash Assertion failed: ((isDependent || !ObjectType->isIncompleteType()) && "Caller should have completed object type")

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Jul 8 12:27:40 PDT 2015


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

            Bug ID: 24070
           Summary: crash Assertion failed: ((isDependent ||
                    !ObjectType->isIncompleteType()) && "Caller should
                    have completed object type")
           Product: clang
           Version: 3.3
          Hardware: PC
                OS: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++11
          Assignee: unassignedclangbugs at nondot.org
          Reporter: alfonslaarman at gmail.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 14566
  --> https://llvm.org/bugs/attachment.cgi?id=14566&action=edit
script

Assertion failed: ((isDependent || !ObjectType->isIncompleteType()) && "Caller
should have completed object type"), function LookupTemplateName, file
SemaTemplate.cpp, line 260.
0  libLLVM-3.3.dylib        0x000000010cc68798
llvm::sys::PrintStackTrace(__sFILE*) + 40
1  libLLVM-3.3.dylib        0x000000010cc68d24 SignalHandler(int) + 612
2  libsystem_platform.dylib 0x00007fff8d422f1a _sigtramp + 26
3  libsystem_platform.dylib 0x00007fff6577c764 _sigtramp + 3627391076
4  libLLVM-3.3.dylib        0x000000010cc68aa6 abort + 22
5  libLLVM-3.3.dylib        0x000000010cc68a81 __assert_rtn + 81
6  clang                    0x000000010b1703e9
clang::Sema::LookupTemplateName(clang::LookupResult&, clang::Scope*,
clang::CXXScopeSpec&, clang::QualType, bool, bool&) + 4473
7  clang                    0x000000010b0c2422
LookupMemberExprInRecord(clang::Sema&, clang::LookupResult&,
clang::SourceRange, clang::RecordType const*, clang::SourceLocation,
clang::CXXScopeSpec&, bool) + 226
8  clang                    0x000000010b0c2c86
clang::Sema::LookupMemberExpr(clang::LookupResult&,
clang::ActionResult<clang::Expr*, true>&, bool&, clang::SourceLocation,
clang::CXXScopeSpec&, clang::Decl*, bool) + 342
9  clang                    0x000000010b0c218e
clang::Sema::BuildMemberReferenceExpr(clang::Expr*, clang::QualType,
clang::SourceLocation, bool, clang::CXXScopeSpec&, clang::SourceLocation,
clang::NamedDecl*, clang::DeclarationNameInfo const&,
clang::TemplateArgumentListInfo const*) + 462
10 clang                    0x000000010b1f3dde clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformExpr(clang::Expr*) + 39806
11 clang                    0x000000010b1fe941 clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformCallExpr(clang::CallExpr*) + 81
12 clang                    0x000000010b1eba53 clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformExpr(clang::Expr*) + 6131
13 clang                    0x000000010b1fe73d clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformCXXNamedCastExpr(clang::CXXNamedCastExpr*)
+ 61
14 clang                    0x000000010b1ebc26 clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformExpr(clang::Expr*) + 6598
15 clang                    0x000000010b1dfd47 clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformType(clang::TypeLocBuilder&,
clang::TypeLoc) + 3911
16 clang                    0x000000010b1ffc5b clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformFunctionProtoType(clang::TypeLocBuilder&,
clang::FunctionProtoTypeLoc, clang::CXXRecordDecl*, unsigned int) + 683
17 clang                    0x000000010b1e2bb3
clang::Sema::SubstFunctionDeclType(clang::TypeSourceInfo*,
clang::MultiLevelTemplateArgumentList const&, clang::SourceLocation,
clang::DeclarationName, clang::CXXRecordDecl*, unsigned int) + 595
18 clang                    0x000000010b20aaf1
clang::TemplateDeclInstantiator::SubstFunctionType(clang::FunctionDecl*,
llvm::SmallVectorImpl<clang::ParmVarDecl*>&) + 241
19 clang                    0x000000010b208193
clang::TemplateDeclInstantiator::VisitCXXMethodDecl(clang::CXXMethodDecl*,
clang::TemplateParameterList*, bool) + 899
20 clang                    0x000000010b207bdb
clang::TemplateDeclInstantiator::VisitFunctionTemplateDecl(clang::FunctionTemplateDecl*)
+ 251
21 clang                    0x000000010b1e5135
clang::Sema::InstantiateClass(clang::SourceLocation, clang::CXXRecordDecl*,
clang::CXXRecordDecl*, clang::MultiLevelTemplateArgumentList const&,
clang::TemplateSpecializationKind, bool) + 1189
22 clang                    0x000000010b1e6a56
clang::Sema::InstantiateClassTemplateSpecialization(clang::SourceLocation,
clang::ClassTemplateSpecializationDecl*, clang::TemplateSpecializationKind,
bool) + 1958
23 clang                    0x000000010b2346ea
clang::Sema::RequireCompleteType(clang::SourceLocation, clang::QualType,
clang::Sema::TypeDiagnoser&) + 842
24 clang                    0x000000010b229f15
clang::Sema::RequireCompleteType(clang::SourceLocation, clang::QualType,
unsigned int) + 37
25 clang                    0x000000010afb3607
clang::Sema::CheckFieldDecl(clang::DeclarationName, clang::QualType,
clang::TypeSourceInfo*, clang::RecordDecl*, clang::SourceLocation, bool,
clang::Expr*, clang::InClassInitStyle, clang::SourceLocation,
clang::AccessSpecifier, clang::NamedDecl*, clang::Declarator*) + 231
26 clang                    0x000000010afb33c3
clang::Sema::HandleField(clang::Scope*, clang::RecordDecl*,
clang::SourceLocation, clang::Declarator&, clang::Expr*,
clang::InClassInitStyle, clang::AccessSpecifier) + 1315
27 clang                    0x000000010afe9392
clang::Sema::ActOnCXXMemberDeclarator(clang::Scope*, clang::AccessSpecifier,
clang::Declarator&, llvm::MutableArrayRef<clang::TemplateParameterList*>,
clang::Expr*, clang::VirtSpecifiers const&, clang::InClassInitStyle) + 3618
28 clang                    0x000000010ae88d88
clang::Parser::ParseCXXClassMemberDeclaration(clang::AccessSpecifier,
clang::AttributeList*, clang::Parser::ParsedTemplateInfo const&,
clang::ParsingDeclRAIIObject*) + 5608
29 clang                    0x000000010ae860da
clang::Parser::ParseCXXMemberSpecification(clang::SourceLocation,
clang::SourceLocation, clang::Parser::ParsedAttributesWithRange&, unsigned int,
clang::Decl*) + 2858
30 clang                    0x000000010ae84ceb
clang::Parser::ParseClassSpecifier(clang::tok::TokenKind,
clang::SourceLocation, clang::DeclSpec&, clang::Parser::ParsedTemplateInfo
const&, clang::AccessSpecifier, bool, clang::Parser::DeclSpecContext,
clang::Parser::ParsedAttributesWithRange&) + 7995
31 clang                    0x000000010ae6cbdc
clang::Parser::ParseDeclarationSpecifiers(clang::DeclSpec&,
clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier,
clang::Parser::DeclSpecContext, clang::Parser::LateParsedAttrList*) + 1452
32 clang                    0x000000010aed1e09
clang::Parser::ParseDeclOrFunctionDefInternal(clang::Parser::ParsedAttributesWithRange&,
clang::ParsingDeclSpec&, clang::AccessSpecifier) + 73
33 clang                    0x000000010aed19fb
clang::Parser::ParseDeclarationOrFunctionDefinition(clang::Parser::ParsedAttributesWithRange&,
clang::ParsingDeclSpec*, clang::AccessSpecifier) + 363
34 clang                    0x000000010aed1070
clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&,
clang::ParsingDeclSpec*) + 2704
35 clang                    0x000000010ae7ee3c
clang::Parser::ParseInnerNamespace(std::__1::vector<clang::SourceLocation,
std::__1::allocator<clang::SourceLocation> >&,
std::__1::vector<clang::IdentifierInfo*,
std::__1::allocator<clang::IdentifierInfo*> >&,
std::__1::vector<clang::SourceLocation,
std::__1::allocator<clang::SourceLocation> >&, unsigned int,
clang::SourceLocation&, clang::ParsedAttributes&,
clang::BalancedDelimiterTracker&) + 444
36 clang                    0x000000010ae7e883
clang::Parser::ParseNamespace(unsigned int, clang::SourceLocation&,
clang::SourceLocation) + 5315
37 clang                    0x000000010ae6c0c4
clang::Parser::ParseDeclaration(llvm::SmallVector<clang::Stmt*, 32u>&, unsigned
int, clang::SourceLocation&, clang::Parser::ParsedAttributesWithRange&) + 420
38 clang                    0x000000010aed0b7d
clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&,
clang::ParsingDeclSpec*) + 1437
39 clang                    0x000000010ae7ee3c
clang::Parser::ParseInnerNamespace(std::__1::vector<clang::SourceLocation,
std::__1::allocator<clang::SourceLocation> >&,
std::__1::vector<clang::IdentifierInfo*,
std::__1::allocator<clang::IdentifierInfo*> >&,
std::__1::vector<clang::SourceLocation,
std::__1::allocator<clang::SourceLocation> >&, unsigned int,
clang::SourceLocation&, clang::ParsedAttributes&,
clang::BalancedDelimiterTracker&) + 444
40 clang                    0x000000010ae7e883
clang::Parser::ParseNamespace(unsigned int, clang::SourceLocation&,
clang::SourceLocation) + 5315
41 clang                    0x000000010ae6c0c4
clang::Parser::ParseDeclaration(llvm::SmallVector<clang::Stmt*, 32u>&, unsigned
int, clang::SourceLocation&, clang::Parser::ParsedAttributesWithRange&) + 420
42 clang                    0x000000010aed0b7d
clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&,
clang::ParsingDeclSpec*) + 1437
43 clang                    0x000000010aed055e
clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&) + 318
44 clang                    0x000000010ae60386 clang::ParseAST(clang::Sema&,
bool, bool) + 422
45 clang                    0x000000010ae13a7a
clang::CodeGenAction::ExecuteAction() + 122
46 clang                    0x000000010abab6b3 clang::FrontendAction::Execute()
+ 131
47 clang                    0x000000010ab86fed
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 989
48 clang                    0x000000010ab4b6ec
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 4124
49 clang                    0x000000010ab4337b cc1_main(char const**, char
const**, char const*, void*) + 955
50 clang                    0x000000010ab476a4 main + 1716
51 libdyld.dylib            0x00007fff966255c9 start + 1
52 libdyld.dylib            0x00000000000000b2 start + 1771940586
Stack dump:
0.    Program arguments: /opt/local/libexec/llvm-3.3/bin/clang -cc1 -triple
x86_64-apple-macosx10.10.0 -emit-obj -mrelax-all -disable-free -main-file-name
meta.cpp -mrelocation-model pic -pic-level 2 -mdisable-fp-elim -masm-verbose
-munwind-tables -target-cpu core2 -target-linker-version 236.3 -g
-coverage-file
/Users/laarman/divine/_build/divine/CMakeFiles/libdivine.dir/utility/meta.cpp.o
-resource-dir /opt/local/libexec/llvm-3.3/bin/../lib/clang/3.3 -isystem
/Users/laarman/divine/external/ltl3ba/buddy/src -isystem
/Users/laarman/divine/external/libutap/src -isystem
/Users/laarman/divine/external/dbm/include -isystem
/opt/local/libexec/llvm-3.3/include -isystem
/opt/local/libexec/llvm-3.3/include -D ALG_CSDR=1 -D ALG_EXPLICIT=0 -D
ALG_MAP=0 -D ALG_METRICS=1 -D ALG_NDFS=0 -D ALG_OWCTY=1 -D ALG_REACHABILITY=1
-D ALG_WEAKREACHABILITY=0 -D BRICKS_HAVE_DIRENT_D_TYPE -D BRICKS_HAVE_LLVM -D
BRICKS_HAVE_REGEX_H -D DEV_CONFLATE=0 -D DEV_GCOV=0 -D DEV_NOPOOLEPHEMERAL=0 -D
DEV_NOPOOLS=0 -D DEV_WARNINGS=0 -D GEN_CESMI=1 -D GEN_COIN=0 -D GEN_DUMMY=0 -D
GEN_DVE=1 -D GEN_EXPLICIT=1 -D GEN_EXPLICIT_PROB=0 -D GEN_LLVM=1 -D
GEN_LLVM_CSDR=1 -D GEN_LLVM_PROB=0 -D GEN_LLVM_PTST=0 -D GEN_TIMED=1 -D
OPT_CURSES=1 -D OPT_DRAW=1 -D OPT_GUI=1 -D OPT_HOARD=0 -D OPT_LLVMSPLIT=Generic
-D OPT_LTL2DSTAR=0 -D OPT_LTL3BA=0 -D OPT_MANUAL=0 -D OPT_MPI=0 -D OPT_MURPHI=1
-D OPT_SIMULATE=1 -D OPT_SQL=0 -D OPT_TBBMALLOC=1 -D STORE_COMPRESS=1 -D
STORE_HC=0 -D TRANSFORM_FAIR=1 -D TRANSFORM_POR=1 -D _DEBUG -D _GNU_SOURCE -D
__STDC_CONSTANT_MACROS -D __STDC_FORMAT_MACROS -D __STDC_LIMIT_MACROS -I
/Users/laarman/divine/bricks -I /opt/local/include/valgrind -I
/opt/local/include/libxml2 -I /opt/local/include -I /Users/laarman/divine -I
/Users/laarman/divine/_build -I /opt/local/libexec/llvm-3.3/include
-stdlib=libc++ -Wall -Wold-style-cast -Wno-unused-function -std=c++11
-fdeprecated-macro -fdebug-compilation-dir /Users/laarman/divine/_build/divine
-ferror-limit 19 -fmessage-length 165 -stack-protector 1 -mstackrealign
-fblocks -fobjc-runtime=macosx-10.10.0 -fobjc-dispatch-method=mixed
-fobjc-default-synthesize-properties -fencode-extended-block-signature
-fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics
-backend-option -vectorize-loops -o CMakeFiles/libdivine.dir/utility/meta.cpp.o
-x c++ /Users/laarman/divine/divine/utility/meta.cpp 
1.    /Users/laarman/divine/bricks/brick-types.h:1017:14: current parser token
';'
2.    /Users/laarman/divine/bricks/brick-types.h:958:1: parsing namespace
'brick_test'
3.    /Users/laarman/divine/bricks/brick-types.h:959:1: parsing namespace
'types'
4.    /Users/laarman/divine/bricks/brick-types.h:1016:1: parsing
struct/union/class body 'UnionInstances'
[ 79%] Building CXX object
gui/baseTools/CMakeFiles/baseTools.dir/outputPreferences.cpp.o
clang: error: unable to execute command: Illegal instruction: 4
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.3 (tags/RELEASE_33/final)
Target: x86_64-apple-darwin14.4.0
Thread model: posix
clang: note: diagnostic msg: PLEASE submit a bug report to
http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and
associated run script.
clang: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg:
/var/folders/bw/y4bh1c957dzcqz_c9x2ljnd80000gn/T/meta-Poyqcy.cpp
clang: note: diagnostic msg:
/var/folders/bw/y4bh1c957dzcqz_c9x2ljnd80000gn/T/meta-Poyqcy.sh
clang: note: diagnostic msg: 

********************

-- 
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/20150708/a2e3688a/attachment.html>


More information about the llvm-bugs mailing list