[llvm-bugs] [Bug 41427] New: Crash when deducing class template argument from constructor argument
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Apr 8 06:48:42 PDT 2019
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: unassignedclangbugs at nondot.org
Reporter: kacper.slominski72 at gmail.com
CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org,
neeilans at live.com, richard-llvm at metafoo.co.uk
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190408/8ea00167/attachment-0001.html>
More information about the llvm-bugs
mailing list