[LLVMbugs] [Bug 17500] New: Explicit template specialization cause crash
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Mon Oct 7 15:01:12 PDT 2013
http://llvm.org/bugs/show_bug.cgi?id=17500
Bug ID: 17500
Summary: Explicit template specialization cause crash
Product: clang
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++11
Assignee: unassignedclangbugs at nondot.org
Reporter: hun.nemethpeter at gmail.com
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
This code snipshet cause crash in clang master:
template<typename F>
struct Item
{
F *foo();
};
template<typename F>
struct Container
{
static const Item<F> items[];
};
template<typename F>
const Item<F> Container<F>::items[] =
{{
{
[]() -> F { }
}
}};
template struct Container<int>; // without this it compiles
int main()
{
return 0;
}
compiling with
clang++ -std=c++11 clangBug.cc
clang version 3.4 (https://github.com/llvm-mirror/clang.git
040cd82aadd48ba50e9742881d648d53ddd2a6c9) (http://llvm.org/git/llvm.git
fb92f4645968724d2095ef95a7034d7e20d39b3f)
--
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/20131007/9b602f25/attachment.html>
More information about the llvm-bugs
mailing list