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: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected]

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.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to