Hi all, my work on pr60322 caused a regression on trunk. This patch fixes it. The regression had two causes: 1. Not taking the correct attribute for BT_CLASS objects with allocatable components into account (chunk 1), and 2. taking the address of an address (chunk 2). When a class or derived typed scalar object is to be returned as a reference and a scalarizer is present, then the address of the address of the object was returned. The former code was meant to return the address of an array element for which taking the address was ok. The patch now prevents taking the additional address when the object is scalar. Bootstraps and regtests ok x86_64-linux-gnu/f21. Ok for trunk. Regards, Andre -- Andre Vehreschild * Email: vehre ad gmx dot de