<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 --- - clang++ crashes when compiles the code with a generic lambda inside a parameter pack expansion"
href="http://llvm.org/bugs/show_bug.cgi?id=20998">20998</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>clang++ crashes when compiles the code with a generic lambda inside a parameter pack expansion
</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>other
</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++1y
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>constructor7777@gmail.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=13052" name="attach_13052" title="Source file which causes a crash">attachment 13052</a> <a href="attachment.cgi?id=13052&action=edit" title="Source file which causes a crash">[details]</a></span>
Source file which causes a crash
Command line output:
<span class="quote">>F:\Programs\LLVM\bin\clang++ -std=c++14 -Wall -Wextra -pedantic-errors main.cpp</span >
Assertion failed: isa<LabelDecl>(D) && "declaration not instantiated in this
scope", file
D:\src\llvm_release_build_3.5.0\llvm\tools\clang\lib\Sema\SemaTemplateInstantiate.cpp,
line 2703
clang++.exe: error: clang frontend command failed with exit code 3 (use -v to
see invocation)
clang version 3.5.0 (217039)
Target: i686-pc-windows-gnu
Thread model: posix
clang++.exe: 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++.exe: note: diagnostic msg:
********************
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang++.exe: note: diagnostic msg:
C:\Users\vm\AppData\Local\Temp\main-66b1bd.cpp
clang++.exe: note: diagnostic msg:
C:\Users\vm\AppData\Local\Temp\main-66b1bd.sh
clang++.exe: note: diagnostic msg:
********************
Preprocessed source (main-66b1bd.cpp):
# 1 "<built-in>"
# 1 "main.cpp"
template
<
typename... Types
>
void Foo
(
Types...
)
{
}
template
<
typename... Functors
>
void Bar
(
Functors... functors
)
{
Foo
(
[functors](auto... arguments)
{
return functors(arguments...);
}...
);
}
int main()
{
Bar
(
[](){ return 1; },
[](int){ return 2; }
);
}
Assosiated run script (main-66b1bd.sh):
"F:\Programs\LLVM\bin\clang++.exe" -cc1 -triple i686-pc-windows-gnu -emit-obj
-mrelax-all -disable-free -main-file-name main.cpp -mrelocation-model static
-mdisable-fp-elim -fmath-errno -masm-verbose -mconstructor-aliases -target-cpu
pentium4 -dwarf-column-info -Wall -Wextra -pedantic-errors -std=c++14
-fdeprecated-macro -ferror-limit 19 -fmessage-length 80 -mstackrealign
-fno-use-cxa-atexit -fobjc-runtime=gcc -fcxx-exceptions -fexceptions
-fdiagnostics-show-option -fcolor-diagnostics -x c++ main-66b1bd.cpp
P.S. I'm using Clang 3.5.0 installed via a pre-built 'Clang for Windows'
installer (LLVM-3.5.0-win32.exe) on a machine with Windows 7 OS.</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>