[llvm-bugs] [Bug 37909] New: Incomplete template function causes clang to crash
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri Jun 22 10:06:36 PDT 2018
https://bugs.llvm.org/show_bug.cgi?id=37909
Bug ID: 37909
Summary: Incomplete template function causes clang to crash
Product: clang
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: C++
Assignee: unassignedclangbugs at nondot.org
Reporter: pickensd at synopsys.com
CC: dgregor at apple.com, llvm-bugs at lists.llvm.org
The following C++ test case causes clang to crash:
Assertion failed: !isIncompleteType() && "This doesn't make sense for
incomplete types", file
C:\src\llvm_package_333363\llvm\tools\clang\lib\AST\Type.cpp, line 1984
--------- test.cc ------------------------------
template<class T>
T&& create();
template<class T, class... Args>
void test() {
T t(create<Args>()...); // { dg-error "incomplete" }
(void) t;
}
int main() {
test<int[]>();
}
--
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/20180622/a1588cf8/attachment.html>
More information about the llvm-bugs
mailing list