[clang] [Clang] Copy initialization of an object of the same type should not consider user-defined conversions (PR #185936)

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 11 10:33:57 PDT 2026


================
@@ -355,6 +355,9 @@ Bug Fixes to C++ Support
 - Fix initialization of GRO when GRO-return type mismatches, as part of CWG2563. (#GH98744)
 - Fix an error using an initializer list with array new for a type that is not default-constructible. (#GH81157)
 
+- We no longer consider conversion operators when copy-initializing from the same type. This was non
+  conforming and could lead to recursive constraint satisfaction (#GH149443).
----------------
erichkeane wrote:

```suggestion
  conforming and lead to recursive constraint satisfaction checking (#GH149443).
```

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


More information about the cfe-commits mailing list