public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug fortran/23232] New: DATA implied DO variables @ 2005-08-04 15:58 rofi at ya dot com 2005-08-04 15:59 ` [Bug fortran/23232] " rofi at ya dot com ` (2 more replies) 0 siblings, 3 replies; 4+ messages in thread From: rofi at ya dot com @ 2005-08-04 15:58 UTC (permalink / raw) To: gcc-bugs gcc version 4.1.0 20050730 (experimental) The following two DATA statements are rejected by gfortran because "J" is not considered a valid primary in those expressions although it is the variable of another enclosing data-implied-do. PROGRAM p REAL :: ONE_ARRAY(100, 100) INTEGER :: K, J DATA ((ONE_ARRAY (K, J), K = 1, J-1), J = 1, 100) /4950 * 1.0/ DATA ((ONE_ARRAY (K, J), K = J, 100), J = 1, 100) /5050 * 0.0/ END PROGRAM $ gfortran -fsyntax-only snippet.f90 In file snippet.f90:5 DATA ((ONE_ARRAY (K, J), K = 1, J-1), J = 1, 100) /4950 * 1.0/ 1 Error: Variable 'j' at (1) cannot appear in an initialization expression In file snippet.f90:6 DATA ((ONE_ARRAY (K, J), K = J, 100), J = 1, 100) /5050 * 0.0/ 1 Error: Variable 'j' at (1) cannot appear in an initialization expression -- Summary: DATA implied DO variables Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P2 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: rofi at ya dot com CC: gcc-bugs at gcc dot gnu dot org GCC host triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23232 ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug fortran/23232] DATA implied DO variables 2005-08-04 15:58 [Bug fortran/23232] New: DATA implied DO variables rofi at ya dot com @ 2005-08-04 15:59 ` rofi at ya dot com 2005-08-16 19:22 ` tobi at gcc dot gnu dot org 2005-09-28 13:24 ` pinskia at gcc dot gnu dot org 2 siblings, 0 replies; 4+ messages in thread From: rofi at ya dot com @ 2005-08-04 15:59 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From rofi at ya dot com 2005-08-04 15:59 ------- Created an attachment (id=9431) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=9431&action=view) Failing case with an optional commented checking part -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23232 ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug fortran/23232] DATA implied DO variables 2005-08-04 15:58 [Bug fortran/23232] New: DATA implied DO variables rofi at ya dot com 2005-08-04 15:59 ` [Bug fortran/23232] " rofi at ya dot com @ 2005-08-16 19:22 ` tobi at gcc dot gnu dot org 2005-09-28 13:24 ` pinskia at gcc dot gnu dot org 2 siblings, 0 replies; 4+ messages in thread From: tobi at gcc dot gnu dot org @ 2005-08-16 19:22 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From tobi at gcc dot gnu dot org 2005-08-16 19:20 ------- Confirmed g77. g77 accepts similar code. -- What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed| |1 Last reconfirmed|0000-00-00 00:00:00 |2005-08-16 19:20:35 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23232 ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug fortran/23232] DATA implied DO variables 2005-08-04 15:58 [Bug fortran/23232] New: DATA implied DO variables rofi at ya dot com 2005-08-04 15:59 ` [Bug fortran/23232] " rofi at ya dot com 2005-08-16 19:22 ` tobi at gcc dot gnu dot org @ 2005-09-28 13:24 ` pinskia at gcc dot gnu dot org 2 siblings, 0 replies; 4+ messages in thread From: pinskia at gcc dot gnu dot org @ 2005-09-28 13:24 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From pinskia at gcc dot gnu dot org 2005-09-28 13:24 ------- *** Bug 24100 has been marked as a duplicate of this bug. *** -- What |Removed |Added ---------------------------------------------------------------------------- CC| |federico dot carminati at | |cern dot ch http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23232 ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2005-09-28 13:24 UTC | newest] Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2005-08-04 15:58 [Bug fortran/23232] New: DATA implied DO variables rofi at ya dot com 2005-08-04 15:59 ` [Bug fortran/23232] " rofi at ya dot com 2005-08-16 19:22 ` tobi at gcc dot gnu dot org 2005-09-28 13:24 ` pinskia at gcc dot gnu dot org
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).