[clang] [Clang] Do not treat Foo -> const Foo conversion sequences as perfect (PR #148613)

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Mon Jul 14 06:24:22 PDT 2025


================
@@ -5305,10 +5306,10 @@ TryReferenceInit(Sema &S, Expr *Init, QualType DeclType,
     // FIXME: As a speculative fix to a defect introduced by CWG2352, we rank
     // a reference binding that performs a non-top-level qualification
     // conversion as a qualification conversion, not as an identity conversion.
-    ICS.Standard.Third = (RefConv &
-                              Sema::ReferenceConversions::NestedQualification)
-                             ? ICK_Qualification
-                             : ICK_Identity;
+    ICS.Standard.Third =
----------------
erichkeane wrote:

Unrelated change?

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


More information about the cfe-commits mailing list