From: Richard Smith Date: Wed, 24 Apr 2019 23:45:56 +0000 (+0000) Subject: PR41427: This has apparently been fixed already, just add a regression X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=517791705e220b26bb307330fbb72566b516d095;p=clang PR41427: This has apparently been fixed already, just add a regression test. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@359155 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/SemaTemplate/ctad.cpp b/test/SemaTemplate/ctad.cpp new file mode 100644 index 0000000000..f2944655b3 --- /dev/null +++ b/test/SemaTemplate/ctad.cpp @@ -0,0 +1,17 @@ +// RUN: %clang_cc1 -std=c++17 -verify %s + +// expected-no-diagnostics +namespace pr41427 { + template class A { + public: + A(void (*)(T)) {} + }; + + void D(int) {} + + void f() { + A a(&D); + using T = decltype(a); + using T = A; + } +}