Hello Andre,I get a regression on this testcase with a patch that is otherwise regression-free.
I think the testcase is invalid. It does:
type(container), allocatable :: list(:) list = [list, new_elem(5)]
so it's using the variable 'list' unallocated.The original testcase in the PR had an extra zero-sized allocate statement before the assignment.
I think it's the only missing bit.