https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85750
Harald Anlauf <anlauf at gmx dot de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |anlauf at gmx dot de --- Comment #3 from Harald Anlauf <anlauf at gmx dot de> --- Looking at the dump-tree and comparing the original code with a variant with the DT component ptr commented out, one wonders where the initialization of the function result got lost in the original variant. Without ptr (either pointer or allocatable), one gets the expected result.