mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -04:00
patch 9.1.0252: Vim9: segfault with static in super class
Problem: Vim9: segfault with static in super class (Ernie Rael) Solution: When initializing lhs, use the correct class where a class variable is defined (Yegappan Lakshmanan) fixes: #14352 closes: #14372 Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
8eb7523802
commit
2ed5a11b1a
@@ -1790,10 +1790,11 @@ compile_lhs(
|
||||
return FAIL;
|
||||
|
||||
lhs->lhs_dest = dest_class_member;
|
||||
lhs->lhs_class = cctx->ctx_ufunc->uf_class;
|
||||
lhs->lhs_type =
|
||||
oc_member_type_by_idx(cctx->ctx_ufunc->uf_class,
|
||||
FALSE, lhs->lhs_classmember_idx);
|
||||
// The class variable is defined either in the current class or
|
||||
// in one of the parent class in the hierarchy.
|
||||
lhs->lhs_class = defcl;
|
||||
lhs->lhs_type = oc_member_type_by_idx(defcl, FALSE,
|
||||
lhs->lhs_classmember_idx);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user