[Bug fortran/13910] [gfortran] Cannot initialize variables with declation as allowed by g77

tobi at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Wed Jun 2 12:30:00 GMT 2004


------- 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



More information about the Gcc-bugs mailing list