------- Comment #10 from pault at gcc dot gnu dot org 2008-02-06 08:33 ------- This bug is caused by gfc_conv_intrinsic_conversion calling gfc_conv_intrinsic_function_args, which builds a temporary without checking if the allocatable array 'yy' has been allocated or not.
This can be cured by looking for a null data field of the argument and converting that directly. Alternatively, the dimension 0 lbound and ubound being set to the same value on scope entry would accomplish the same result. I'll see which looks the most economic. Cheers Paul -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34143