[clang] [Clang] Never consider conversion from single-element braced-init-list perfect (PR #138307)

via cfe-commits cfe-commits at lists.llvm.org
Sat May 3 02:37:45 PDT 2025


================
@@ -412,6 +419,12 @@ class Sema;
     bool isPerfect(const ASTContext &C) const {
       if (!isIdentityConversion())
         return false;
+
+      // We might prefer a std::initializer constructor,
----------------
cor3ntin wrote:

Oups

https://github.com/llvm/llvm-project/pull/138307


More information about the cfe-commits mailing list