[llvm-bugs] [Bug 41139] New: Frontend crashes passing a function pointer/ref.s to template class constructor
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Mar 19 07:04:50 PDT 2019
https://bugs.llvm.org/show_bug.cgi?id=41139
Bug ID: 41139
Summary: Frontend crashes passing a function pointer/ref.s to
template class constructor
Product: clang
Version: 7.0
Hardware: PC
OS: other
Status: NEW
Severity: normal
Priority: P
Component: C++'17
Assignee: unassignedclangbugs at nondot.org
Reporter: yapoo777 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
Created attachment 21628
--> https://bugs.llvm.org/attachment.cgi?id=21628&action=edit
run script
Clang(7.0.1) frontend crashes to compile these constractors.
//////////
int f1( unsigned ) { return 0; }
/////////
template <class R, class... Args>
struct S1 {
S1( R(*f)(Args...) ) {}
// S1( R(&f)(Args...) ) {}
// S1( R(&&f)(Args...) ) {}
};
//////////
int main() {
S1 s1( f1 );
// F1(f1);
return 0;
}
invocation command line
$ clang -std=c++17 a.cpp
--
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/20190319/9b25a183/attachment.html>
More information about the llvm-bugs
mailing list