------- Comment #4 from jv244 at cam dot ac dot uk 2009-09-23 18:37 ------- (In reply to comment #3) > a=RESHAPE((/(TRANSFER(uninitialized_a_type_dummy,uninitialized_a_type_dummy),i=1,SIZE(a))/),SHAPE(a))
the simpler: a=RESHAPE((/(uninitialized_a_type_dummy,i=1,SIZE(a))/),SHAPE(a)) is of course enough. I guess three cases need to be considered, 1) scalars: simple assignment 2) arrays: reshape trick, 3) assumed size arrays (i.e. with the *): skip since we don't know the size. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31447