[clang] [Sema][CTAD] Allow user defined conversion for copy-list-initialization (PR #94752)
Haojian Wu via cfe-commits
cfe-commits at lists.llvm.org
Mon Jun 17 23:23:14 PDT 2024
================
@@ -0,0 +1,65 @@
+// RUN: %clang_cc1 -fsyntax-only -verify -Wno-unused-value -std=c++20 %s
+
+namespace std {
+ typedef decltype(sizeof(int)) size_t;
+
+ template <typename E>
+ struct initializer_list
+ {
+ const E *p;
+ size_t n;
+ initializer_list(const E *p, size_t n) : p(p), n(n) {}
+ };
+
+ struct string {
----------------
hokein wrote:
nit: this is not used.
https://github.com/llvm/llvm-project/pull/94752
More information about the cfe-commits
mailing list