Behavior of associate construct in gfortran

That makes sense. I will still refrain from using functions returning pointers.