https://bugs.llvm.org/show_bug.cgi?id=41427

            Bug ID: 41427
           Summary: Crash when deducing class template argument from
                    constructor argument
           Product: clang
           Version: 8.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected]

Created attachment 21747
  --> https://bugs.llvm.org/attachment.cgi?id=21747&action=edit
compiler output

The following code:

template <typename T>
class A {
public:
        A(void (*)(T)) {}
};

void D(int){}

void f() {
        A a(&D);
}

produces a segmentation fault when compiling on 8.0, 7.0, and trunk with
-std=c++17 or -std=c++2a. The same code compiles without any problems with g++.
The compiler output with -v is attached to this report.

-- 
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