[LLVMbugs] [Bug 20998] New: clang++ crashes when compiles the code with a generic lambda inside a parameter pack expansion
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri Sep 19 03:47:36 PDT 2014
http://llvm.org/bugs/show_bug.cgi?id=20998
Bug ID: 20998
Summary: clang++ crashes when compiles the code with a generic
lambda inside a parameter pack expansion
Product: clang
Version: trunk
Hardware: PC
OS: other
Status: NEW
Severity: normal
Priority: P
Component: C++1y
Assignee: unassignedclangbugs at nondot.org
Reporter: constructor7777 at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 13052
--> http://llvm.org/bugs/attachment.cgi?id=13052&action=edit
Source file which causes a crash
Command line output:
>F:\Programs\LLVM\bin\clang++ -std=c++14 -Wall -Wextra -pedantic-errors main.cpp
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
http://llvm.org/bugs/ 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.
--
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/20140919/0f6e0d79/attachment.html>
More information about the llvm-bugs
mailing list