https://gcc.gnu.org/g:1bd1e824fc17e8adba83fd1317786aacd53457d9

commit r16-8368-g1bd1e824fc17e8adba83fd1317786aacd53457d9
Author: Marek Polacek <[email protected]>
Date:   Tue Mar 31 16:20:37 2026 -0400

    c++/reflection: update eval_size_of comment
    
    The wording was changed by the fix for NB US 105-166 (C++26 CD).
    
    gcc/cp/ChangeLog:
    
            * reflect.cc (eval_offset_of): Update comment.

Diff:
---
 gcc/cp/reflect.cc | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/gcc/cp/reflect.cc b/gcc/cp/reflect.cc
index 9bd55c5f4203..405790d5f357 100644
--- a/gcc/cp/reflect.cc
+++ b/gcc/cp/reflect.cc
@@ -3173,9 +3173,9 @@ eval_offset_of (location_t loc, const constexpr_ctx *ctx, 
tree r,
 }
 
 /* Process std::meta::size_of.
-   Returns: If r represents
-     -- a non-static data member of type T,
-     -- a data member description (T,N,A,W,NUA), or
+   Returns: If
+     -- r represents a non-static data member of type T or a data member
+       description (T,N,A,W,NUA) or
      -- dealias(r) represents a type T,
    then sizeof(T) if T is not a reference type and size_of(add_pointer(^^T))
    otherwise.  Otherwise, size_of(type_of(r)).

Reply via email to