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: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs