<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 --- - blocks and templates: non-canonical or dependent type in IR-generation"
href="http://llvm.org/bugs/show_bug.cgi?id=18145">18145</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>blocks and templates: non-canonical or dependent type in IR-generation
</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>-New Bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>jwnrnzow@sharklasers.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=11668" name="attach_11668" title="preprocessed source">attachment 11668</a> <a href="attachment.cgi?id=11668&action=edit" title="preprocessed source">[details]</a></span>
preprocessed source
$ clang -c test.cpp -fblocks -std=c++11
non-canonical or dependent type in IR-generation
UNREACHABLE executed at
/home/ian/llvm2/llvm/tools/clang/lib/CodeGen/CodeGenFunction.cpp:95!
0 clang 0x00000000035fe4be llvm::sys::PrintStackTrace(_IO_FILE*) +
46
1 clang 0x00000000035fe77b
2 clang 0x00000000035fe9ee
3 libpthread.so.0 0x00007f4717f6e030
4 libc.so.6 0x00007f4716e33475 gsignal + 53
5 libc.so.6 0x00007f4716e366f0 abort + 384
6 clang 0x00000000035e6416
7 clang 0x0000000000c45617
clang::CodeGen::CodeGenFunction::getEvaluationKind(clang::QualType) + 119
8 clang 0x0000000000c29f6d
9 clang 0x0000000000d6ee44
clang::CodeGen::CodeGenFunction::EmitAggExpr(clang::Expr const*,
clang::CodeGen::AggValueSlot) + 68
10 clang 0x0000000000d3d204
clang::CodeGen::CodeGenFunction::EmitExprAsInit(clang::Expr const*,
clang::ValueDecl const*, clang::CodeGen::LValue, bool) + 1076
11 clang 0x0000000000d3bf80
clang::CodeGen::CodeGenFunction::EmitAutoVarInit(clang::CodeGen::CodeGenFunction::AutoVarEmission
const&) + 784
12 clang 0x0000000000d39ae5
clang::CodeGen::CodeGenFunction::EmitAutoVarDecl(clang::VarDecl const&) + 53
13 clang 0x0000000000d3973e
clang::CodeGen::CodeGenFunction::EmitVarDecl(clang::VarDecl const&) + 270
14 clang 0x0000000000d394d2
clang::CodeGen::CodeGenFunction::EmitDecl(clang::Decl const&) + 386
15 clang 0x0000000000c25a85
clang::CodeGen::CodeGenFunction::EmitDeclStmt(clang::DeclStmt const&) + 117
16 clang 0x0000000000c20f25
clang::CodeGen::CodeGenFunction::EmitSimpleStmt(clang::Stmt const*) + 325
17 clang 0x0000000000c207d7
clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*) + 87
18 clang 0x0000000000c2635b
clang::CodeGen::CodeGenFunction::EmitCompoundStmtWithoutScope(clang::CompoundStmt
const&, bool, clang::CodeGen::AggValueSlot) + 139
19 clang 0x0000000000c4880b
clang::CodeGen::CodeGenFunction::EmitFunctionBody(clang::CodeGen::FunctionArgList&,
clang::Stmt const*) + 107
20 clang 0x0000000000c48d7d
clang::CodeGen::CodeGenFunction::GenerateCode(clang::GlobalDecl,
llvm::Function*, clang::CodeGen::CGFunctionInfo const&) + 1357
21 clang 0x0000000000c5cf28
clang::CodeGen::CodeGenModule::EmitGlobalFunctionDefinition(clang::GlobalDecl)
+ 920
22 clang 0x0000000000c5a28f
clang::CodeGen::CodeGenModule::EmitGlobalDefinition(clang::GlobalDecl) + 511
23 clang 0x0000000000c5c20c
clang::CodeGen::CodeGenModule::EmitGlobal(clang::GlobalDecl) + 764
24 clang 0x0000000000c5e665
clang::CodeGen::CodeGenModule::EmitTopLevelDecl(clang::Decl*) + 245
25 clang 0x0000000000bc6860
26 clang 0x0000000000bc4e28
27 clang 0x0000000000e3270c clang::ParseAST(clang::Sema&, bool, bool)
+ 524
28 clang 0x00000000008f9989 clang::ASTFrontendAction::ExecuteAction()
+ 345
29 clang 0x0000000000bc456e clang::CodeGenAction::ExecuteAction() +
1246
30 clang 0x00000000008f94af clang::FrontendAction::Execute() + 191
31 clang 0x00000000008c4350
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 800
32 clang 0x00000000008861c8
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1048
33 clang 0x0000000000873e8a cc1_main(char const**, char const**, char
const*, void*) + 698
34 clang 0x00000000008802c2 main + 802
35 libc.so.6 0x00007f4716e1fead __libc_start_main + 253
36 clang 0x0000000000873ae9
Stack dump:
0. Program arguments: /home/ian/llvm2/build/Debug+Asserts/bin/clang -cc1
-triple x86_64-unknown-linux-gnu -emit-obj -mrelax-all -disable-free
-main-file-name test.cpp -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 -coverage-file
/home/ian/tmp/q/test.o -resource-dir
/home/ian/llvm2/build/Debug+Asserts/bin/../lib/clang/3.5 -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/ian/llvm2/build/Debug+Asserts/bin/../lib/clang/3.5/include
-internal-externc-isystem /usr/include/x86_64-linux-gnu
-internal-externc-isystem /include -internal-externc-isystem /usr/include
-std=c++11 -fdeprecated-macro -fdebug-compilation-dir /home/ian/tmp/q
-ferror-limit 19 -fmessage-length 199 -mstackrealign -fblocks
-fobjc-runtime=gcc -fcxx-exceptions -fexceptions -fdiagnostics-show-option
-fcolor-diagnostics -vectorize-slp -o test.o -x c++ test.cpp
1. <eof> parser at end of file
2. test.cpp:16:5: LLVM IR generation of declaration 'main'
3. test.cpp:16:5: Generating code for declaration 'main'
clang: error: unable to execute command: Aborted
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.5 (trunk 196387)
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/test-6b798d.cpp
clang: note: diagnostic msg: /tmp/test-6b798d.sh
clang: note: diagnostic msg:
********************
$
The run script contains:
"/home/ian/llvm2/build/Debug+Asserts/bin/clang" -cc1 -triple
x86_64-unknown-linux-gnu -emit-obj -mrelax-all -disable-free -main-file-name
test.cpp -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 -std=c++11 -fdeprecated-macro -ferror-limit 19
-fmessage-length 199 -mstackrealign -fblocks -fobjc-runtime=gcc
-fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics
-vectorize-slp -x c++ test-6b798d.cpp</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>