This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]