@@ -542,21 +542,21 @@ std::string PythonCompiler::aggregate_type_to_string(const struct EvalResult &r)
542542 result += " )" ;
543543
544544 } else if (asr_type->type == ASR::ttypeType::StructType) {
545- ASR::StructType_t *class_type = ASR::down_cast<ASR::StructType_t>(asr_type);
546- ASR::Struct_t *struct_info = ASR::down_cast<ASR::Struct_t>(class_type->m_derived_type );
547- LCOMPILERS_ASSERT (class_type->n_data_member_types == struct_info->n_members )
548- result += struct_info->m_name ;
549- result += " (" ;
550- for (size_t i = 0 ; i < struct_info->n_members - 1 ; i++) {
551- result += struct_info->m_members [i];
552- result += " =" ;
553- print_type (class_type->m_data_member_types [i], ((char *)data)+offsets[i], result);
554- result += " , " ;
555- }
556- result += struct_info->m_members [struct_info->n_members - 1 ];
557- result += " =" ;
558- print_type (class_type->m_data_member_types [struct_info->n_members - 1 ], ((char *)data)+offsets[struct_info->n_members - 1 ], result);
559- result += " )" ;
545+ // ASR::StructType_t *class_type = ASR::down_cast<ASR::StructType_t>(asr_type);
546+ // ASR::Struct_t *struct_info = ASR::down_cast<ASR::Struct_t>(class_type->m_derived_type);
547+ // LCOMPILERS_ASSERT(class_type->n_data_member_types == struct_info->n_members)
548+ // result += struct_info->m_name;
549+ // result += "(";
550+ // for (size_t i = 0; i < struct_info->n_members - 1; i++) {
551+ // result += struct_info->m_members[i];
552+ // result += "=";
553+ // print_type(class_type->m_data_member_types[i], ((char*)data)+offsets[i], result);
554+ // result += ", ";
555+ // }
556+ // result += struct_info->m_members[struct_info->n_members - 1];
557+ // result += "=";
558+ // print_type(class_type->m_data_member_types[struct_info->n_members - 1], ((char*)data)+offsets[struct_info->n_members - 1], result);
559+ // result += ")";
560560
561561 } else {
562562 throw LCompilersException (" PythonCompiler::evaluate(): Return type not supported" );
0 commit comments