MitalAshok added inline comments.

================
Comment at: clang/test/CXX/drs/dr14xx.cpp:433
-    S s1;
-    S s2 = {s1}; // ok, not list-initialization so we pick the non-explicit 
constructor
-  }
----------------
This relies on the old wording. "If T is a class type and the initializer list 
has a single element of type cv U, where U is T or a class derived from T, the 
object is initialized from that element (by copy-initialization for 
copy-list-initialization, or by direct-initialization for 
direct-list-initialization)".

"If T is a class type" -> "If T is an aggregate class type", so this 
copy-list-initialization remains copy-list-initialization (and should fail for 
picking the explicit constructor)


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D156032

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to