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: unassignedclangb...@nondot.org
Reporter: yapoo...@gmail.com
CC: blitzrak...@gmail.com, erik.pilking...@gmail.com,
llvm-bugs@lists.llvm.org, richard-l...@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs