[clang] [clang] Report narrowing conversions with const references (PR #75332)

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Wed Dec 13 07:14:09 PST 2023


================
@@ -4486,7 +4487,8 @@ static void TryReferenceListInitialization(Sema &S,
     if (RefRelationship >= Sema::Ref_Related) {
       // Try to bind the reference here.
       TryReferenceInitializationCore(S, Entity, Kind, Initializer, cv1T1, T1,
-                                     T1Quals, cv2T2, T2, T2Quals, Sequence);
+                                     T1Quals, cv2T2, T2, T2Quals, Sequence,
+                                     true);
----------------
erichkeane wrote:

```suggestion
                                     /*TopLevelOfInitList=*/true);
```

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


More information about the cfe-commits mailing list