------- Comment #8 from pault at gcc dot gnu dot org 2010-01-18 09:54 ------- This PR has me somewhat flummoxed. I have changed the title to reflect the fact that it does not matter if the component is allocatable or a pointer. Also, a component reference of an allocatable array of derived types works correctly.
There is no reason whatsoever why a temporary is generated; I just cannot see who is making that happen. Paul -- pault at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|[4.3/4.4/4.5 Regression] |[4.3/4.4/4.5 Regression] |Wrong-code with allocatable |Wrong-code with allocatable |compounds |or pointer components in | |elemental functions http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42736