------- Comment #10 from janus at gcc dot gnu dot org 2009-10-20 20:06 ------- I have re-checked the F03 standard to verify that the first argument of PACK can indeed be of arbitrary type:
13.7.89 PACK (ARRAY, MASK [, VECTOR]) Description. Pack an array into an array of rank one under the control of a Class. Transformational function. Arguments. ARRAY may be of any type. It shall not be scalar. ... In the gfortran testsuite PACK seems to be tested with all intrinsic types (logical, integer, real, complex, character), but not with derived types. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41478