This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libfortran/24459] gfortran namelist problem
- From: "ed at eh3 dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 Dec 2005 19:54:00 -0000
- Subject: [Bug libfortran/24459] gfortran namelist problem
- References: <bug-24459-11560@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #11 from ed at eh3 dot com 2005-12-04 19:54 -------
Thank you for re-opening this bug! In an attempt to make our model
(http://mitgcm.org) as portable as possible, we tried switching the
namelist syntax from the older Fortran77 to F90 "triplets" and
discovered the following:
"old style" Fortran77:
eg.: astring(1,1) = 'name1 ', 'name2 ', 'name3 '
This syntax works with basically *EVERY* Fortran77 compiler that
we can get our hands on including g77, Sun, IBM xlf, PGI (pgif77),
and Intel. But it fails with gfortran.
"new-style F90 triplets":
eg.: astring(1:3,1) = 'name1 ', 'name2 ', 'name3 '
This works with some Fortran77 compilers including g77 and Intel
but it fails with others including PGI (pgf77).
So I would again like to humbly request (or is it beg?!) that this
long-standing g77 feature be included with gfortran.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24459