ctad.cpp 264 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 // RUN: %clang_cc1 -std=c++17 -verify %s // expected-no-diagnostics namespace pr41427 { template <typename T> class A { public: A(void (*)(T)) {} }; void D(int) {} void f() { A a(&D); using T = decltype(a); using T = A<int>; } }