[LLVMbugs] [Bug 18254] New: Templated lambda cause with C++ modules
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sat Dec 14 14:50:45 PST 2013
http://llvm.org/bugs/show_bug.cgi?id=18254
Bug ID: 18254
Summary: Templated lambda cause with C++ modules
Product: clang
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Modules
Assignee: unassignedclangbugs at nondot.org
Reporter: hun.nemethpeter at gmail.com
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 11734
--> http://llvm.org/bugs/attachment.cgi?id=11734&action=edit
Replication info
See attachment, full backtrace:
clang: /home/npeter/Devel/clang/llvm/include/llvm/Support/Casting.h:97: static
bool llvm::isa_impl_cl<clang::TagType, const clang::Type *>::doit(const From *)
[To = clang::TagType, From = const clang::Type *]: Assertion `Val && "isa<>
used on a null pointer"' failed.
0 clang 0x0000000001d4c835 llvm::sys::PrintStackTrace(_IO_FILE*) +
37
1 clang 0x0000000001d4cc93
2 libpthread.so.0 0x00007ff71df10bd0
3 libc.so.6 0x00007ff71d14d037 gsignal + 55
4 libc.so.6 0x00007ff71d150698 abort + 328
5 libc.so.6 0x00007ff71d145e03
6 libc.so.6 0x00007ff71d145eb2
7 clang 0x000000000120b491 clang::DeclContext::getPrimaryContext() +
481
8 clang 0x000000000120ca06
clang::DeclContext::lookup(clang::DeclarationName) + 38
9 clang 0x000000000120cdff
clang::DeclContext::noload_lookup(clang::DeclarationName) + 79
10 clang 0x0000000000767866
clang::ASTDeclReader::findExisting(clang::NamedDecl*) + 358
11 clang 0x000000000075ed8e
clang::ASTDeclReader::VisitFunctionDecl(clang::FunctionDecl*) + 1278
12 clang 0x0000000000764a83
clang::ASTDeclReader::VisitCXXMethodDecl(clang::CXXMethodDecl*) + 19
13 clang 0x00000000007557e4 clang::ASTDeclReader::Visit(clang::Decl*)
+ 20
14 clang 0x00000000007692a4 clang::ASTReader::ReadDeclRecord(unsigned
int) + 1780
15 clang 0x0000000000733a86 clang::ASTReader::GetDecl(unsigned int) +
70
16 clang 0x000000000076fd13
17 clang 0x0000000000755a65
clang::ASTDeclReader::VisitDecl(clang::Decl*) + 197
18 clang 0x000000000075e58f
clang::ASTDeclReader::VisitValueDecl(clang::ValueDecl*) + 15
19 clang 0x000000000075e770
clang::ASTDeclReader::VisitDeclaratorDecl(clang::DeclaratorDecl*) + 16
20 clang 0x0000000000761ef4
clang::ASTDeclReader::VisitVarDeclImpl(clang::VarDecl*) + 52
21 clang 0x000000000076bf2b
22 clang 0x000000000076245f
clang::ASTDeclReader::VisitParmVarDecl(clang::ParmVarDecl*) + 15
23 clang 0x00000000007557e4 clang::ASTDeclReader::Visit(clang::Decl*)
+ 20
24 clang 0x00000000007692a4 clang::ASTReader::ReadDeclRecord(unsigned
int) + 1780
25 clang 0x0000000000733a86 clang::ASTReader::GetDecl(unsigned int) +
70
26 clang 0x000000000073b951
clang::TypeLocReader::VisitFunctionTypeLoc(clang::FunctionTypeLoc) + 305
27 clang 0x000000000073b5ee
clang::ASTReader::GetTypeSourceInfo(clang::serialization::ModuleFile&,
llvm::SmallVector<unsigned long, 64u> const&, unsigned int&) + 110
28 clang 0x000000000076431d
clang::ASTDeclReader::ReadCXXDefinitionData(clang::CXXRecordDecl::DefinitionData&,
llvm::SmallVector<unsigned long, 64u> const&, unsigned int&) + 2589
29 clang 0x0000000000764641
clang::ASTDeclReader::VisitCXXRecordDeclImpl(clang::CXXRecordDecl*) + 257
30 clang 0x00000000007706bb
31 clang 0x00000000007557e4 clang::ASTDeclReader::Visit(clang::Decl*)
+ 20
32 clang 0x00000000007692a4 clang::ASTReader::ReadDeclRecord(unsigned
int) + 1780
33 clang 0x0000000000733a86 clang::ASTReader::GetDecl(unsigned int) +
70
34 clang 0x0000000000736d21 clang::ASTReader::readTypeRecord(unsigned
int) + 2161
35 clang 0x00000000007330a9 clang::ASTReader::GetType(unsigned int) +
137
36 clang 0x0000000000775227
clang::ASTStmtReader::VisitExpr(clang::Expr*) + 71
37 clang 0x000000000077c833
clang::ASTStmtReader::VisitLambdaExpr(clang::LambdaExpr*) + 19
38 clang 0x0000000000783a8a
clang::ASTReader::ReadStmtFromStream(clang::serialization::ModuleFile&) + 10906
39 clang 0x0000000000783ff4
clang::ASTReader::ReadExpr(clang::serialization::ModuleFile&) + 20
40 clang 0x000000000076226d
clang::ASTDeclReader::VisitVarDeclImpl(clang::VarDecl*) + 941
41 clang 0x000000000076bf2b
42 clang 0x00000000007557e4 clang::ASTDeclReader::Visit(clang::Decl*)
+ 20
43 clang 0x00000000007692a4 clang::ASTReader::ReadDeclRecord(unsigned
int) + 1780
44 clang 0x0000000000733a86 clang::ASTReader::GetDecl(unsigned int) +
70
45 clang 0x0000000000773bbf
clang::ASTStmtReader::VisitDeclStmt(clang::DeclStmt*) + 175
46 clang 0x0000000000783a8a
clang::ASTReader::ReadStmtFromStream(clang::serialization::ModuleFile&) + 10906
47 clang 0x00000000011fa540
clang::FunctionDecl::getBody(clang::FunctionDecl const*&) const + 144
48 clang 0x0000000000d07507
clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation,
clang::FunctionDecl*, bool, bool) + 135
49 clang 0x0000000000d08e4b
clang::Sema::PerformPendingInstantiations(bool) + 299
50 clang 0x00000000009f1749 clang::Sema::ActOnEndOfTranslationUnit()
+ 441
51 clang 0x0000000000952fd5
clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&) + 165
52 clang 0x000000000094f1b6 clang::ParseAST(clang::Sema&, bool, bool)
+ 454
53 clang 0x00000000007e19d2 clang::CodeGenAction::ExecuteAction() +
530
54 clang 0x0000000000659f21 clang::FrontendAction::Execute() + 113
55 clang 0x000000000063851d
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 957
56 clang 0x000000000061e8c0
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 3728
57 clang 0x0000000000615f4e cc1_main(char const**, char const**, char
const*, void*) + 638
58 clang 0x000000000061c715 main + 9333
59 libc.so.6 0x00007ff71d137ea5 __libc_start_main + 245
60 clang 0x0000000000615c0d
Stack dump:
0. Program arguments: /home/npeter/Devel/install/bin/clang -cc1 -triple
x86_64-unknown-linux-gnu -emit-obj -mrelax-all -disable-free -main-file-name
main.cc -mrelocation-model static -mdisable-fp-elim -fmath-errno -masm-verbose
-mconstructor-aliases -munwind-tables -fuse-init-array -target-cpu x86-64
-target-linker-version 2.22 -g -coverage-file
/home/npeter/Devel/practice/modules/_build_/main.cc.1.o -resource-dir
/home/npeter/Devel/install/bin/../lib/clang/3.5 -I . -I .. -I ../modules
-internal-isystem /usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../include/c++/4.7
-internal-isystem
/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../include/c++/4.7/x86_64-linux-gnu
-internal-isystem
/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../include/c++/4.7/backward
-internal-isystem
/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../include/x86_64-linux-gnu/c++/4.7
-internal-isystem /usr/local/include -internal-isystem
/home/npeter/Devel/install/bin/../lib/clang/3.5/include
-internal-externc-isystem /usr/include/x86_64-linux-gnu
-internal-externc-isystem /include -internal-externc-isystem /usr/include -O0
-Wall -std=c++11 -fdeprecated-macro -fdebug-compilation-dir
/home/npeter/Devel/practice/modules/_build_ -ferror-limit 19 -fmessage-length
183 -mstackrealign -fmodules -fmodules-cache-path=. -fobjc-runtime=gcc
-fcxx-exceptions -fexceptions -fdiagnostics-show-option -vectorize-slp -o
main.cc.1.o -x c++ ../main.cc
1. <eof> parser at end of file
2. ../modules/Bug.h:2:6: instantiating function definition 'foo'
clang: error: unable to execute command: Aborted (core dumped)
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.5 (https://github.com/llvm-mirror/clang.git
f20b43f409d28577a44186ee4df3ff02bb3c409a) (http://llvm.org/git/llvm.git
a23bd2e761f528e91e2b4d14cc495b7afde3b4f2)
Target: x86_64-unknown-linux-gnu
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:
--
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/20131214/03e840c3/attachment.html>
More information about the llvm-bugs
mailing list