<html>
<head>
<base href="http://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - capnproto doesn't compile with clang 3.5"
href="http://llvm.org/bugs/show_bug.cgi?id=21285">21285</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>capnproto doesn't compile with clang 3.5
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>C++
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>ilitzroth@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>dgregor@apple.com, llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>/home/immanuel/workspace/buildtools/clang/4.0/bin/clang++ -DHAVE_CONFIG_H -I.
-I../capnproto-c++-0.4.1 -I../capnproto-c++-0.4.1/src -I./src -pthread
-std=c++14 -fPIC -ggdb3 -O0 -gdwarf-3 -DBOOST_SPIRIT_THREADSAFE
-D_FILE_OFFSET_BITS=64 -I/usr/include/python2.7 -pthread -MT
src/capnp/compiler/module-loader.o -MD -MP -MF $depbase.Tpo -c -o
src/capnp/compiler/module-loader.o
../capnproto-c++-0.4.1/src/capnp/compiler/module-loader.c++ &&\
mv -f $depbase.Tpo $depbase.Po
clang:
/home/immanuel/workspace/sources/llvm-3.5.svn/tools/clang/lib/AST/ASTContext.cpp:3040:
clang::QualType clang::ASTContext::getSubstTemplateTypeParmType(const
clang::TemplateTypeParmType*, clang::QualType) const: Assertion
`Replacement.isCanonical() && "replacement types must always be canonical"'
failed.
0 clang 0x000000000263f722 llvm::sys::PrintStackTrace(_IO_FILE*) +
34
1 clang 0x000000000263f064
2 libpthread.so.0 0x00002ad2053dbcb0
3 libc.so.6 0x00002ad205f500d5 gsignal + 53
4 libc.so.6 0x00002ad205f5383b abort + 379
5 libc.so.6 0x00002ad205f48d9e
6 libc.so.6 0x00002ad205f48e42
7 clang 0x000000000139a63a
clang::ASTContext::getSubstTemplateTypeParmType(clang::TemplateTypeParmType
const*, clang::QualType) const + 442
8 clang 0x0000000000e7df0f
9 clang 0x0000000000e83aa0
10 clang 0x0000000000e84b2e
11 clang 0x0000000000e923f3
12 clang 0x0000000000e950e4
13 clang 0x0000000000e95ac2
14 clang 0x0000000000e96404
15 clang 0x0000000000e841de
16 clang 0x0000000000e84b2e
17 clang 0x0000000000e854ae
18 clang 0x0000000000e85a0b clang::Sema::SubstType(clang::QualType,
clang::MultiLevelTemplateArgumentList const&, clang::SourceLocation,
clang::DeclarationName) + 123
19 clang 0x0000000000e12fae
clang::Sema::CheckTemplateIdType(clang::TemplateName, clang::SourceLocation,
clang::TemplateArgumentListInfo&) + 1630
20 clang 0x0000000000e1334c
clang::Sema::ActOnTemplateIdType(clang::CXXScopeSpec&, clang::SourceLocation,
clang::OpaquePtr<clang::TemplateName>, clang::SourceLocation,
clang::SourceLocation, llvm::MutableArrayRef<clang::ParsedTemplateArgument>,
clang::SourceLocation, bool) + 172
21 clang 0x0000000000b30e9f
clang::Parser::AnnotateTemplateIdTokenAsType() + 95
22 clang 0x0000000000ad5a29
clang::Parser::ParseDeclarationSpecifiers(clang::DeclSpec&,
clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier,
clang::Parser::DeclSpecContext, clang::Parser::LateParsedAttrList*) + 569
23 clang 0x0000000000ad78f8
clang::Parser::ParseSpecifierQualifierList(clang::DeclSpec&,
clang::AccessSpecifier, clang::Parser::DeclSpecContext) + 72
24 clang 0x0000000000ad7e1c
clang::Parser::ParseTypeName(clang::SourceRange*,
clang::Declarator::TheContext, clang::AccessSpecifier, clang::Decl**,
clang::ParsedAttributes*) + 588
25 clang 0x0000000000ae35d1
clang::Parser::ParseTrailingReturnType(clang::SourceRange&) + 65
26 clang 0x0000000000adce08
clang::Parser::ParseFunctionDeclarator(clang::Declarator&,
clang::ParsedAttributes&, clang::BalancedDelimiterTracker&, bool, bool) + 2712
27 clang 0x0000000000add59c
clang::Parser::ParseDirectDeclarator(clang::Declarator&) + 588
28 clang 0x0000000000ad358f
clang::Parser::ParseDeclaratorInternal(clang::Declarator&, void
(clang::Parser::*)(clang::Declarator&)) + 175
29 clang 0x0000000000ad4402
clang::Parser::ParseDeclarator(clang::Declarator&) + 18
30 clang 0x0000000000b3582e
clang::Parser::ParseSingleDeclarationAfterTemplate(unsigned int,
clang::Parser::ParsedTemplateInfo const&, clang::ParsingDeclRAIIObject&,
clang::SourceLocation&, clang::AccessSpecifier, clang::AttributeList*) + 1470
31 clang 0x0000000000b36d83
clang::Parser::ParseTemplateDeclarationOrSpecialization(unsigned int,
clang::SourceLocation&, clang::AccessSpecifier, clang::AttributeList*) + 963
32 clang 0x0000000000b3702a
clang::Parser::ParseDeclarationStartingWithTemplate(unsigned int,
clang::SourceLocation&, clang::AccessSpecifier, clang::AttributeList*) + 138
33 clang 0x0000000000ae06a4
clang::Parser::ParseDeclaration(llvm::SmallVector<clang::Stmt*, 32u>&, unsigned
int, clang::SourceLocation&, clang::Parser::ParsedAttributesWithRange&) + 612
34 clang 0x0000000000ac5b11
clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&,
clang::ParsingDeclSpec*) + 337
35 clang 0x0000000000ae8661
clang::Parser::ParseInnerNamespace(std::vector<clang::SourceLocation,
std::allocator<clang::SourceLocation> >&, std::vector<clang::IdentifierInfo*,
std::allocator<clang::IdentifierInfo*> >&, std::vector<clang::SourceLocation,
std::allocator<clang::SourceLocation> >&, unsigned int, clang::SourceLocation&,
clang::ParsedAttributes&, clang::BalancedDelimiterTracker&) + 369
36 clang 0x0000000000ae8e84 clang::Parser::ParseNamespace(unsigned
int, clang::SourceLocation&, clang::SourceLocation) + 1908
37 clang 0x0000000000ae0707
clang::Parser::ParseDeclaration(llvm::SmallVector<clang::Stmt*, 32u>&, unsigned
int, clang::SourceLocation&, clang::Parser::ParsedAttributesWithRange&) + 711
38 clang 0x0000000000ac5b11
clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&,
clang::ParsingDeclSpec*) + 337
39 clang 0x0000000000ae8661
clang::Parser::ParseInnerNamespace(std::vector<clang::SourceLocation,
std::allocator<clang::SourceLocation> >&, std::vector<clang::IdentifierInfo*,
std::allocator<clang::IdentifierInfo*> >&, std::vector<clang::SourceLocation,
std::allocator<clang::SourceLocation> >&, unsigned int, clang::SourceLocation&,
clang::ParsedAttributes&, clang::BalancedDelimiterTracker&) + 369
40 clang 0x0000000000ae8e84 clang::Parser::ParseNamespace(unsigned
int, clang::SourceLocation&, clang::SourceLocation) + 1908
41 clang 0x0000000000ae0707
clang::Parser::ParseDeclaration(llvm::SmallVector<clang::Stmt*, 32u>&, unsigned
int, clang::SourceLocation&, clang::Parser::ParsedAttributesWithRange&) + 711
42 clang 0x0000000000ac5b11
clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&,
clang::ParsingDeclSpec*) + 337
43 clang 0x0000000000ac61f0
clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&) + 448
44 clang 0x0000000000abd6f3 clang::ParseAST(clang::Sema&, bool, bool)
+ 275
45 clang 0x0000000000907dfb clang::CodeGenAction::ExecuteAction() +
59
46 clang 0x0000000000771836 clang::FrontendAction::Execute() + 118
47 clang 0x000000000074d3f0
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 320
48 clang 0x00000000007356f2
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1954
49 clang 0x000000000072f718 cc1_main(char const**, char const**, char
const*, void*) + 1400
50 clang 0x0000000000709f52 main + 1362
51 libc.so.6 0x00002ad205f3b76d __libc_start_main + 237
52 clang 0x000000000072eaad
Stack dump:
0. Program arguments:
/home/immanuel/workspace/buildtools/clang/4.0/bin/clang -cc1 -triple
x86_64-unknown-linux-gnu -emit-obj -mrelax-all -disable-free -main-file-name
module-loader.c++ -mrelocation-model pic -pic-level 2 -mdisable-fp-elim
-fmath-errno -masm-verbose -mconstructor-aliases -munwind-tables
-fuse-init-array -target-cpu x86-64 -target-linker-version 2.22 -gdwarf-3
-dwarf-column-info -coverage-file
/home/immanuel/workspace/code/volumedriver-buildtools/src/clang/capnproto/build/src/capnp/compiler/module-loader.o
-resource-dir
/home/immanuel/workspace/buildtools/clang/4.0/bin/../lib/clang/3.5.0
-dependency-file src/capnp/compiler/.deps/module-loader.Tpo -sys-header-deps
-MP -MT src/capnp/compiler/module-loader.o -D HAVE_CONFIG_H -D
BOOST_SPIRIT_THREADSAFE -D _FILE_OFFSET_BITS=64 -I . -I ../capnproto-c++-0.4.1
-I ../capnproto-c++-0.4.1/src -I ./src -I /usr/include/python2.7
-internal-isystem
/home/immanuel/workspace/buildtools/clang/4.0/lib/gcc/x86_64-unknown-linux-gnu/4.9.1/../../../../include/c++/4.9.1
-internal-isystem
/home/immanuel/workspace/buildtools/clang/4.0/lib/gcc/x86_64-unknown-linux-gnu/4.9.1/../../../../include/c++/4.9.1/x86_64-unknown-linux-gnu
-internal-isystem
/home/immanuel/workspace/buildtools/clang/4.0/lib/gcc/x86_64-unknown-linux-gnu/4.9.1/../../../../include/c++/4.9.1/backward
-internal-isystem /usr/local/include -internal-isystem
/home/immanuel/workspace/buildtools/clang/4.0/bin/../lib/clang/3.5.0/include
-internal-externc-isystem /usr/include/x86_64-linux-gnu
-internal-externc-isystem /include -internal-externc-isystem /usr/include -O0
-std=c++14 -fdeprecated-macro -fdebug-compilation-dir
/home/immanuel/workspace/code/volumedriver-buildtools/src/clang/capnproto/build
-ferror-limit 19 -fmessage-length 124 -pthread -mstackrealign
-fobjc-runtime=gcc -fcxx-exceptions -fexceptions -fdiagnostics-show-option -o
src/capnp/compiler/module-loader.o -x c++
../capnproto-c++-0.4.1/src/capnp/compiler/module-loader.c++
1. ../capnproto-c++-0.4.1/src/kj/parse/../tuple.h:270:8: at annotation token
2. ../capnproto-c++-0.4.1/src/kj/parse/../tuple.h:45:1: parsing namespace
'kj'
3. ../capnproto-c++-0.4.1/src/kj/parse/../tuple.h:46:1: parsing namespace
'_'
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.0 (branches/release_35 219791)
Target: x86_64-unknown-linux-gnu
Thread model: posix
clang: note: diagnostic msg: PLEASE submit a bug report to
<a href="http://llvm.org/bugs/">http://llvm.org/bugs/</a> 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: /tmp/module-loader-5101c1.cpp
clang: note: diagnostic msg: /tmp/module-loader-5101c1.sh
clang: note: diagnostic msg:
********************
make: *** [src/capnp/compiler/module-loader.o] Error 254</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>