================
@@ -4988,10 +4990,8 @@ static void TryReferenceListInitialization(Sema &S,
         // ..., unless T is “reference to array of unknown bound of U”, in 
which
         // case the type of the prvalue is the type of x in the declaration U
         // x[] H, where H is the initializer list.
-        Sequence.AddQualificationConversionStep(cv1T1, clang::VK_PRValue);
+        Sequence.AddQualificationConversionStep(cv1T1, clang::VK_XValue);
----------------
mizvekov wrote:

Now this doesn't match the wording cited in the comment, can you explain 
(adding a comment) why we want an XValue instead of a PRValue here?

https://github.com/llvm/llvm-project/pull/187618
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to