The issue can be reproduced by commit 6493b053ad437ccf3ffd9f0b9a4b21bc93003459 and in reference to the test case test_recursive_type.
In the test case, if one tries to get the allocation summary of Object *myB = allocateStruct(bTy); where bTy is
Type *bTy = defineStructType("B",
2,
ReferenceType(StructType("A")),
ReferenceType(StructType("B")));
One can get that summary but printing out the type doesn't terminate, which seems to imply something a bit weird since the to string function just loops through the fields?
The issue can be reproduced by commit 6493b053ad437ccf3ffd9f0b9a4b21bc93003459 and in reference to the test case
test_recursive_type
.In the test case, if one tries to get the allocation summary of
Object *myB = allocateStruct(bTy);
wherebTy
isOne can get that summary but printing out the type doesn't terminate, which seems to imply something a bit weird since the to string function just loops through the fields?