gfortran accepts the following syntax for the assignment of character objects:
CHARACTER(14) :: prop(4) = (/'name', 'data_file_name', 'Ho_units', 'mpolar_units'/) Although this is convenient, is not according to the Fortran standard that requires that all of the elements of a constructor be the same kind, type and for characters, length. According to this the correct syntax is: CHARACTER(14) :: prop(4) = (/'name ', 'data_file_name', & 'Ho_units ', 'mpolar_units '/) -- Summary: Non-standard assignment of arrays of character objects Product: gcc Version: 4.3.2 Status: UNCONFIRMED Severity: minor Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: n dot pinhao at netvisao dot pt GCC build triplet: Linux, x86_64 and i486 GCC host triplet: Linux, x86_64 and i486 GCC target triplet: Linux, x86_64 and i486 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39490