[llvm-bugs] [Bug 41455] New: clang crashes on c++17 class template deduction argument types of function pointers
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Apr 10 11:38:14 PDT 2019
https://bugs.llvm.org/show_bug.cgi?id=41455
Bug ID: 41455
Summary: clang crashes on c++17 class template deduction
argument types of function pointers
Product: clang
Version: trunk
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P
Component: C++'17
Assignee: unassignedclangbugs at nondot.org
Reporter: baruchs at gmail.com
CC: blitzrakete at gmail.com, erik.pilkington at gmail.com,
llvm-bugs at lists.llvm.org, richard-llvm at metafoo.co.uk
Any attempt to deduce the arguments of a function pointer with C++17 class
template deduction results in clang crashing.
The same code works on clang 6.0.0, but no longer works on clang 7.0.0, 8.0.0,
and current trunk.
The following complier explorer link reproduces the crash
https://godbolt.org/z/SKT-Fh
----- .cpp file -------
template<typename... arg_types>
struct wrapper
{
wrapper(void (*f)(arg_types...));
};
void f(int a);
void g()
{
auto w = wrapper(f);
}
-----------------------
--
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/20190410/36980514/attachment.html>
More information about the llvm-bugs
mailing list