PR41139.cpp 259 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 // RUN: %clang_cc1 -fsyntax-only -std=c++17 -verify %s // expected-no-diagnostics // This test should not crash. int f1( unsigned ) { return 0; } template <class R, class... Args> struct S1 { S1( R(*f)(Args...) ) {} }; int main() { S1 s1( f1 ); }