[clang] [clang-tools-extra] [Clang] Implement CWG2813: Class member access with prvalues (PR #95112)
    Mital Ashok via cfe-commits 
    cfe-commits at lists.llvm.org
       
    Fri Jun 14 01:06:02 PDT 2024
    
    
  
================
@@ -1174,6 +1207,9 @@ Sema::BuildMemberReferenceExpr(Expr *BaseExpr, QualType BaseExprType,
       valueKind = VK_PRValue;
       type = Context.BoundMemberTy;
----------------
MitalAshok wrote:
For non-static member function, we don't require a glvalue anymore (to allow by-value explicit objects to bind to prvalues)
https://github.com/llvm/llvm-project/pull/95112
    
    
More information about the cfe-commits
mailing list