[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:07:53 PDT 2023


cor3ntin added inline comments.


================
Comment at: clang/lib/Sema/SemaInit.cpp:4329-4330
   if (Result) {
+    // Ambiguity means an initializer list constructor would not be called
+    // Or a deleted non-initializer-list constructor was to be called
+    if (CopyElisionPossible &&
----------------
I think this needs rephrasing. What ambiguity are you referring to?


================
Comment at: clang/lib/Sema/SemaInit.cpp:4329-4330
   if (Result) {
+    // Ambiguity means an initializer list constructor would not be called
+    // Or a deleted non-initializer-list constructor was to be called
+    if (CopyElisionPossible &&
----------------
cor3ntin wrote:
> I think this needs rephrasing. What ambiguity are you referring to?



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