diff --git a/gcc/cp/reflect.cc b/gcc/cp/reflect.cc index cc7ab22dc7b..44edadcb715 100644 --- a/gcc/cp/reflect.cc +++ b/gcc/cp/reflect.cc @@ -3121,7 +3121,7 @@ eval_offset_of (location_t loc, const constexpr_ctx *ctx, tree r, byte_off = BINFO_OFFSET (r); } else if (TREE_CODE (r) != FIELD_DECL) - return throw_exception (loc, ctx, "reflection unsuitable for offset", + return throw_exception (loc, ctx, "reflection unsuitable for offset_of", fun, non_constant_p, jump_target); else bit_off = bit_position (r);