@goldstein @pinskia so the issue is that during finish_struct a check for flexible array members is performed (via check_flexarrays), and that function performs a recursive search of all the fields, which is what causes the exponential growth in compile times. Should be an easy fix, though, since I think we can just store flexmems_t somewhere in the tree for the struct type