Applying to trunk as obvious.
-- >8 --
Clarify that the current code seems fine.
gcc/cp/ChangeLog:
* reflect.cc (eval_variable_of): Update comment.
---
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 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",
base-commit: 56c143bca7c95559e5fb0882b649d94b3749e341
--
2.52.0