[clang] [clang] Implement P2582R1: CTAD from inherited constructors (PR #98788)
Haojian Wu via cfe-commits
cfe-commits at lists.llvm.org
Mon Jul 22 02:38:47 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);
----------------
hokein wrote:
nit: use `static_assert(__is_same(...));` to verify the type, the same below.
https://github.com/llvm/llvm-project/pull/98788
More information about the cfe-commits
mailing list