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/27997] Fortran 2003: Support type-spec for array constructor



------- Comment #3 from burnus at gcc dot gnu dot org  2007-12-14 16:24 -------
As noted by Tobias Schlüter, the following valid program is rejected:

INTEGER = 1
PRINT *, (/ INTEGER /)
END

One solution is to check for the "::" and if it does not exists, set "seen_ts =
0" and "gfc_current_locus = where".
One also has to move the gfc_notify_std down (e.g. after "done:") and check
then whether seen_ts is set. I think that's what I would do.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27997


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