[PATCH] D156032: Implement CWG2137 (list-initialization from objects of the same type)

Corentin Jabot via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Aug 9 07:04:37 PDT 2023


cor3ntin added inline comments.


================
Comment at: clang/lib/Sema/SemaOverload.cpp:1470
+      SourceLocation FromLoc;
+      // C++ [over.ics.list]p6, per DR2137:
+      //   If C is not an initializer-list constructor and the initializer list
----------------
Can you specify an exact C++ version in the comment? - I am assuming C++23


================
Comment at: clang/test/CXX/drs/dr23xx.cpp:9
+namespace std {
+  __extension__ typedef __SIZE_TYPE__ size_t;
+
----------------



================
Comment at: clang/test/CXX/drs/dr23xx.cpp:50
 
+namespace dr2311 {
+#if __cplusplus >= 201707L
----------------
the dr status html page is generated automatically by leaving a magic comment here - and then running `clang/www/make_cxx_dr_status`


================
Comment at: clang/test/CXX/drs/dr23xx.cpp:54
+void test() {
+  // These should all be elided (no move)
+  T a = T{T(0)};
----------------



Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D156032/new/

https://reviews.llvm.org/D156032



More information about the cfe-commits mailing list