diff -r e8563dcaefca -r 56ebe2a31b5b absyntax_utils/get_datatype_info.cc --- a/absyntax_utils/get_datatype_info.cc Mon Apr 03 22:06:40 2017 +0100 +++ b/absyntax_utils/get_datatype_info.cc Mon Apr 03 22:18:22 2017 +0100 @@ -362,7 +362,7 @@ void *visit(structure_element_declaration_list_c *symbol) { /* now search the structure declaration */ for(int i = 0; i < symbol->n; i++) { - void *tmp = symbol->elements[i]->accept(*this); + void *tmp = symbol->get_element(i)->accept(*this); if (NULL != tmp) return tmp; } return NULL; // not found!! @@ -713,8 +713,8 @@ // comparison of each subrange start and end elements for (int i = 0; i < subrange_list_1->n; i++) { - subrange_c *subrange_1 = dynamic_cast(subrange_list_1->elements[i]); - subrange_c *subrange_2 = dynamic_cast(subrange_list_2->elements[i]); + subrange_c *subrange_1 = dynamic_cast(subrange_list_1->get_element(i)); + subrange_c *subrange_2 = dynamic_cast(subrange_list_2->get_element(i)); if ((NULL == subrange_1) || (NULL == subrange_2)) ERROR; /* check whether the subranges have the same values, using the result of the constant folding agorithm.