From: Marek Polacek Date: Fri, 16 Jan 2026 22:30:05 +0000 (-0500) Subject: c++/reflection: amend comment X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=00f7efe1e5cc3041be777862665cdc4a569a46f3;p=thirdparty%2Fgcc.git c++/reflection: amend comment Clarify that the current code seems fine. gcc/cp/ChangeLog: * reflect.cc (eval_variable_of): Update comment. --- diff --git a/gcc/cp/reflect.cc b/gcc/cp/reflect.cc index 237f630d71b..8f85a6bab5d 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",