Fixed DIM not reporting false inside a TYPE block for invalid user type

This commit is contained in:
n00b
2025-01-26 09:17:55 -05:00
parent 979c946429
commit a3b99950db
4 changed files with 18 additions and 8 deletions

View File

@@ -352,6 +352,15 @@ bool memberExists(string member_name)
bool add_type_member(string member_name, int member_type, string member_utype_name, int member_dim_count, string dim1 = "n0", string dim2 = "n0", string dim3 = "n0")
{
int m_utype_index = member_utype_name.compare("")!=0 ? getUType(member_utype_name) : -1;
//cout << "m_utype_index = " << m_utype_index << " : " << member_utype_name << endl;
if((member_utype_name.compare("")!=0) && m_utype_index < 0)
{
rc_setError(member_utype_name + " does not name a valid type");
return false;
}
if(m_utype_index == current_type_index)
{
//cout << "you canno do is" << endl;