https://gcc.gnu.org/g:00f7efe1e5cc3041be777862665cdc4a569a46f3

commit r16-6849-g00f7efe1e5cc3041be777862665cdc4a569a46f3
Author: Marek Polacek <[email protected]>
Date:   Fri Jan 16 17:30:05 2026 -0500

    c++/reflection: amend comment
    
    Clarify that the current code seems fine.
    
    gcc/cp/ChangeLog:
    
            * reflect.cc (eval_variable_of): Update comment.

Diff:
---
 gcc/cp/reflect.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/cp/reflect.cc b/gcc/cp/reflect.cc
index 237f630d71ba..8f85a6bab5dd 100644
--- a/gcc/cp/reflect.cc
+++ b/gcc/cp/reflect.cc
@@ -3036,7 +3036,7 @@ eval_variable_of (location_t loc, const constexpr_ctx 
*ctx, tree r,
 {
   if (eval_is_function_parameter (r, kind) == boolean_false_node
       /* This doesn't consider the points corresponding to injected
-        declarations.  */
+        declarations, but that doesn't seem needed.  */
       || DECL_CONTEXT (r) != current_function_decl)
     return throw_exception (loc, ctx, "reflection does not represent "
                                      "parameter of current function",

Reply via email to