[clang] [clang] Implement P2582R1: CTAD from inherited constructors (PR #98788)

via cfe-commits cfe-commits at lists.llvm.org
Mon Jul 22 18:54:24 PDT 2024


================
@@ -0,0 +1,260 @@
+// RUN: %clang_cc1 -fsyntax-only -std=c++23 -verify %s
+
+namespace test1 {
+  template<typename T> struct Base {
+    template<typename V = T> requires true
+    Base(T);
+  };
+
+  template<typename T> struct InheritsCtors : public Base<T> {
+    using Base<T>::Base;
+  };
+
+  InheritsCtors inheritsCtors(1);
+  using IC = InheritsCtors<int>;
+  using IC = decltype(inheritsCtors);
----------------
antangelo wrote:

Done

https://github.com/llvm/llvm-project/pull/98788


More information about the cfe-commits mailing list