public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/13912] New: [gfortran] Does not accept g77 code
@ 2004-01-29 2:03 bdavis9659 at comcast dot net
2004-01-29 2:05 ` [Bug fortran/13912] " pinskia at gcc dot gnu dot org
` (6 more replies)
0 siblings, 7 replies; 8+ messages in thread
From: bdavis9659 at comcast dot net @ 2004-01-29 2:03 UTC (permalink / raw)
To: gcc-bugs
[bdavis@localhost bin]$ cat example6.f
INTEGER DMTABREQ(100)
INTEGER I
DMTABREQ(I)=DMTABREQ(I) * -1
END
[bdavis@localhost bin]$ g77 example6.f
[bdavis@localhost bin]$ /usr/local/bin/gfortran example6.f
In file example6.f:3
DMTABREQ(I)=DMTABREQ(I) * -1
1
Error: Unclassifiable statement at (1)
[bdavis@localhost bin]$ /usr/local/bin/gfortran --version
GNU Fortran 95 (GCC 3.5-tree-ssa 20040128 (merged 20040102))
Is this legal f90 ? I do not know but it works on f77 compilers.
--
Summary: [gfortran] Does not accept g77 code
Product: gcc
Version: tree-ssa
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: bdavis9659 at comcast dot net
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13912
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug fortran/13912] [gfortran] Does not accept g77 code
2004-01-29 2:03 [Bug fortran/13912] New: [gfortran] Does not accept g77 code bdavis9659 at comcast dot net
@ 2004-01-29 2:05 ` pinskia at gcc dot gnu dot org
2004-01-29 7:12 ` pinskia at gcc dot gnu dot org
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-01-29 2:05 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |tree-ssa
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13912
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug fortran/13912] [gfortran] Does not accept g77 code
2004-01-29 2:03 [Bug fortran/13912] New: [gfortran] Does not accept g77 code bdavis9659 at comcast dot net
2004-01-29 2:05 ` [Bug fortran/13912] " pinskia at gcc dot gnu dot org
@ 2004-01-29 7:12 ` pinskia at gcc dot gnu dot org
2004-04-22 13:02 ` [Bug fortran/13912] [gfortran] Does not accept negative constants Tobias dot Schlueter at physik dot uni-muenchen dot de
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-01-29 7:12 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-01-29 07:12 -------
Confirmed but note that g77 rejects this with -pedantic.
--
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |enhancement
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2004-01-29 07:12:14
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13912
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug fortran/13912] [gfortran] Does not accept negative constants
2004-01-29 2:03 [Bug fortran/13912] New: [gfortran] Does not accept g77 code bdavis9659 at comcast dot net
2004-01-29 2:05 ` [Bug fortran/13912] " pinskia at gcc dot gnu dot org
2004-01-29 7:12 ` pinskia at gcc dot gnu dot org
@ 2004-04-22 13:02 ` Tobias dot Schlueter at physik dot uni-muenchen dot de
2004-04-25 20:29 ` [Bug fortran/13912] [gfortran] Does not accept consecutive arithmetic operators (*-) bdavis9659 at comcast dot net
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: Tobias dot Schlueter at physik dot uni-muenchen dot de @ 2004-04-22 13:02 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From Tobias dot Schlueter at physik dot uni-muenchen dot de 2004-04-22 12:36 -------
It is not valid Fortran, but I vaguely remember that there has been some
discussion on this in the past, possibly in the pre-fork g95 days. It is a
common extension and shouldn't be too hard to implement, though. Of course the
workaround is simple: place parentheses (-1).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13912
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug fortran/13912] [gfortran] Does not accept consecutive arithmetic operators (*-)
2004-01-29 2:03 [Bug fortran/13912] New: [gfortran] Does not accept g77 code bdavis9659 at comcast dot net
` (2 preceding siblings ...)
2004-04-22 13:02 ` [Bug fortran/13912] [gfortran] Does not accept negative constants Tobias dot Schlueter at physik dot uni-muenchen dot de
@ 2004-04-25 20:29 ` bdavis9659 at comcast dot net
2004-05-24 14:53 ` pinskia at gcc dot gnu dot org
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: bdavis9659 at comcast dot net @ 2004-04-25 20:29 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From bdavis9659 at comcast dot net 2004-04-25 20:09 -------
Corrected summary to more accurately reflect the problem.
--
What |Removed |Added
----------------------------------------------------------------------------
Summary|[gfortran] Does not accept |[gfortran] Does not accept
|negative constants |consecutive arithmetic
| |operators (*-)
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13912
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug fortran/13912] [gfortran] Does not accept consecutive arithmetic operators (*-)
2004-01-29 2:03 [Bug fortran/13912] New: [gfortran] Does not accept g77 code bdavis9659 at comcast dot net
` (3 preceding siblings ...)
2004-04-25 20:29 ` [Bug fortran/13912] [gfortran] Does not accept consecutive arithmetic operators (*-) bdavis9659 at comcast dot net
@ 2004-05-24 14:53 ` pinskia at gcc dot gnu dot org
2004-05-26 14:19 ` pinskia at gcc dot gnu dot org
2004-05-26 14:19 ` cvs-commit at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-05-24 14:53 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed|2004-01-29 07:12:14 |2004-05-24 01:13:02
date| |
Target Milestone|3.5.0 |---
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13912
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug fortran/13912] [gfortran] Does not accept consecutive arithmetic operators (*-)
2004-01-29 2:03 [Bug fortran/13912] New: [gfortran] Does not accept g77 code bdavis9659 at comcast dot net
` (5 preceding siblings ...)
2004-05-26 14:19 ` pinskia at gcc dot gnu dot org
@ 2004-05-26 14:19 ` cvs-commit at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-05-26 14:19 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-05-26 02:35 -------
Subject: Bug 13912
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: sayle@gcc.gnu.org 2004-05-26 02:35:30
Modified files:
gcc/fortran : ChangeLog matchexp.c
Log message:
PR fortran/13912
* matchexp.c: Allow unary operators after arithmetic operators
as a GNU extension.
(match_ext_mult_operand, match_ext_add_operand): New functions.
(match_mult_operand): Tweak to call match_ext_mult_operand.
(match_add_operand): Tweak to call match_ext_mult_operand.
(match_level_2): Rearrange to call match_ext_add_operand.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/ChangeLog.diff?cvsroot=gcc&r1=1.46&r2=1.47
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/matchexp.c.diff?cvsroot=gcc&r1=1.3&r2=1.4
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13912
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug fortran/13912] [gfortran] Does not accept consecutive arithmetic operators (*-)
2004-01-29 2:03 [Bug fortran/13912] New: [gfortran] Does not accept g77 code bdavis9659 at comcast dot net
` (4 preceding siblings ...)
2004-05-24 14:53 ` pinskia at gcc dot gnu dot org
@ 2004-05-26 14:19 ` pinskia at gcc dot gnu dot org
2004-05-26 14:19 ` cvs-commit at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-05-26 14:19 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-05-26 02:37 -------
Fixed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
Target Milestone|--- |3.5.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13912
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2004-05-26 2:37 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-29 2:03 [Bug fortran/13912] New: [gfortran] Does not accept g77 code bdavis9659 at comcast dot net
2004-01-29 2:05 ` [Bug fortran/13912] " pinskia at gcc dot gnu dot org
2004-01-29 7:12 ` pinskia at gcc dot gnu dot org
2004-04-22 13:02 ` [Bug fortran/13912] [gfortran] Does not accept negative constants Tobias dot Schlueter at physik dot uni-muenchen dot de
2004-04-25 20:29 ` [Bug fortran/13912] [gfortran] Does not accept consecutive arithmetic operators (*-) bdavis9659 at comcast dot net
2004-05-24 14:53 ` pinskia at gcc dot gnu dot org
2004-05-26 14:19 ` pinskia at gcc dot gnu dot org
2004-05-26 14:19 ` cvs-commit 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).