[LLVMbugs] [Bug 14124] New: Crash on instantiating a template within a pack expansion
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu Oct 18 16:12:42 PDT 2012
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: unassignedclangbugs at nondot.org
ReportedBy: jordan_rose at apple.com
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
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.
More information about the llvm-bugs
mailing list