asn1scc version 4.5.0.4
The compiler produces an _IsContraintValid() function that calls itself unconditionally:
flag T_STRUCT_member_IsConstraintValid(const T_STRUCT_member* pVal, int* pErrCode)
{
flag ret = TRUE;
ret = T_STRUCT_member_IsConstraintValid(pVal, pErrCode);
if (ret) {
ret = ((*(pVal)) == 100UL);
*pErrCode = ret ? 0 : ERR_T_STRUCT_MEMBER_2_2;
} /*COVERAGE_IGNORE*/
return ret;
}
asn1scc version 4.5.0.4 The compiler produces an _IsContraintValid() function that calls itself unconditionally:
The .asn definition that generates this is:
The key points which trigger this behavior are:
T-SOME-TYPE
on top ofT-uint32
)member
of that type with a specified value (100).If
member
is defined asT-uint32
instead, or no value is specified, no recursive function is created.