]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
c++/reflection: amend comment
authorMarek Polacek <polacek@redhat.com>
Fri, 16 Jan 2026 22:30:05 +0000 (17:30 -0500)
committerMarek Polacek <polacek@redhat.com>
Fri, 16 Jan 2026 22:31:10 +0000 (17:31 -0500)
Clarify that the current code seems fine.

gcc/cp/ChangeLog:

* reflect.cc (eval_variable_of): Update comment.

gcc/cp/reflect.cc

index 237f630d71bab05793f4d6c6b326cb2f5dd423e9..8f85a6bab5dd67ce3027536f8bed48bae11ba61e 100644 (file)
@@ -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",