This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/13910] [gfortran] Cannot initialize variables with declation as allowed by g77
- From: "tobi at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 Jun 2004 12:30:09 -0000
- Subject: [Bug fortran/13910] [gfortran] Cannot initialize variables with declation as allowed by g77
- References: <20040129015105.13910.bdavis9659@comcast.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From tobi at gcc dot gnu dot org 2004-06-02 12:30 -------
As Paul pointed out in the follow-up to my patch, this calls for a more general
approach, essentially parsing this as if it were part of a data statement, i.e.
INTEGER i
DATA i /2/
and
INTEGER i /2/
are essentially equivalent. This of course raises the question if
INTEGER i(2) /2/
is valid and means
INTEGER i(2)
DATA i /2*2/
or if it means
DATA i(2) /2/
and then requires a separate declaration.
Is there any documentation for this? I didn't find it in the g77 docs.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13910