http://llvm.org/bugs/show_bug.cgi?id=14124
Bug #: 14124
Summary: Crash on instantiating a template within a pack
expansion
Product: clang
Version: trunk
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: C++11
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
The following code causes clang to hit an UNREACHABLE at CGExpr.cpp:1767. I
think it's valid, but at the very least it should not crash, right?
r166237
---
namespace {
template <typename T>
struct Format { int value = 1; };
} // end anonymous namespace
void test(int x, ...) {}
template <typename ...Args>
void makeRequest(Args... args) {
test(Format<Args>::value...);
}
void test() {
makeRequest(1);
}
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- 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