public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/20867] New: error needed
@ 2005-04-08 15:57 jv244 at cam dot ac dot uk
2005-04-22 14:47 ` [Bug fortran/20867] statement function args not given implicit type early enough tobi at gcc dot gnu dot org
0 siblings, 1 reply; 7+ messages in thread
From: jv244 at cam dot ac dot uk @ 2005-04-08 15:57 UTC (permalink / raw)
To: gcc-bugs
The following is non-standard and the compiler should probably generate a
warning/error with '-pedantic -std=f95'
REAL :: st1
st1(I)=I**2 ! I implicitly typed to integer
REAL :: I
END
--
Summary: error needed
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: jv244 at cam dot ac dot uk
CC: gcc-bugs at gcc dot gnu dot org
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20867
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug fortran/20867] statement function args not given implicit type early enough
2005-04-08 15:57 [Bug fortran/20867] New: error needed jv244 at cam dot ac dot uk
@ 2005-04-22 14:47 ` tobi at gcc dot gnu dot org
0 siblings, 0 replies; 7+ messages in thread
From: tobi at gcc dot gnu dot org @ 2005-04-22 14:47 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |accepts-invalid
Last reconfirmed|0000-00-00 00:00:00 |2005-04-22 14:47:05
date| |
Summary|error needed |statement function args not
| |given implicit type early
| |enough
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20867
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug fortran/20867] statement function args not given implicit type early enough
[not found] <bug-20867-6642@http.gcc.gnu.org/bugzilla/>
` (3 preceding siblings ...)
2006-06-25 18:09 ` pault at gcc dot gnu dot org
@ 2006-06-25 18:10 ` pault at gcc dot gnu dot org
4 siblings, 0 replies; 7+ messages in thread
From: pault at gcc dot gnu dot org @ 2006-06-25 18:10 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from pault at gcc dot gnu dot org 2006-06-25 18:10 -------
Fixed on trunk and 4.1
Paul
--
pault at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20867
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug fortran/20867] statement function args not given implicit type early enough
[not found] <bug-20867-6642@http.gcc.gnu.org/bugzilla/>
` (2 preceding siblings ...)
2006-06-25 15:12 ` pault at gcc dot gnu dot org
@ 2006-06-25 18:09 ` pault at gcc dot gnu dot org
2006-06-25 18:10 ` pault at gcc dot gnu dot org
4 siblings, 0 replies; 7+ messages in thread
From: pault at gcc dot gnu dot org @ 2006-06-25 18:09 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from pault at gcc dot gnu dot org 2006-06-25 18:08 -------
Subject: Bug 20867
Author: pault
Date: Sun Jun 25 18:08:13 2006
New Revision: 114994
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=114994
Log:
2006-06-25 Paul Thomas <pault@gcc.gnu.org>
PR fortran/25056
* interface.c (compare_actual_formal): Signal an error if the formal
argument is a pure procedure and the actual is not pure.
PR fortran/27554
* resolve.c (resolve_actual_arglist): If the type of procedure
passed as an actual argument is not already declared, see if it is
an intrinsic.
PR fortran/25073
* resolve.c (resolve_select): Use bits 1 and 2 of a new int to
keep track of the appearance of constant logical case expressions.
Signal an error is either value appears more than once.
PR fortran/20874
* resolve.c (resolve_fl_procedure): Signal an error if an elemental
function is not scalar valued.
PR fortran/20867
* match.c (recursive_stmt_fcn): Perform implicit typing of variables.
PR fortran/22038
* match.c (match_forall_iterator): Mark new variables as
FL_UNKNOWN if the match fails.
PR fortran/28119
* match.c (gfc_match_forall): Remove extraneous call to
gfc_match_eos.
PR fortran/25072
* resolve.c (resolve_code, resolve_function): Rework
forall_flag scheme so that it is set and has a value of
2, when the code->expr (ie. the forall mask) is resolved.
This is used to change "block" to "mask" in the non-PURE
error message.
2006-06-25 Paul Thomas <pault@gcc.gnu.org>
PR fortran/20867
* gfortran.dg/stfunc_3.f90: New test.
PR fortran/25056
* gfortran.dg/impure_actual_1.f90: New test.
PR fortran/20874
* gfortran.dg/elemental_result_1.f90: New test.
PR fortran/25073
* gfortran.dg/select_7.f90: New test.
PR fortran/27554
* intrinsic_actual_1.f: New test.
PR fortran/22038
PR fortran/28119
* gfortran.dg/forall_4.f90: New test.
PR fortran/25072
* gfortran.dg/forall_5.f90: New test.
Added:
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/elemental_result_1.f90
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/forall_4.f90
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/forall_5.f90
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/impure_actual_1.f90
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/intrinsic_actual_1.f
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/select_7.f90
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/stfunc_3.f90
Modified:
branches/gcc-4_1-branch/gcc/fortran/ChangeLog
branches/gcc-4_1-branch/gcc/fortran/interface.c
branches/gcc-4_1-branch/gcc/fortran/match.c
branches/gcc-4_1-branch/gcc/fortran/resolve.c
branches/gcc-4_1-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20867
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug fortran/20867] statement function args not given implicit type early enough
[not found] <bug-20867-6642@http.gcc.gnu.org/bugzilla/>
2005-11-02 21:24 ` tkoenig at gcc dot gnu dot org
2006-06-19 13:14 ` paul dot richard dot thomas at cea dot fr
@ 2006-06-25 15:12 ` pault at gcc dot gnu dot org
2006-06-25 18:09 ` pault at gcc dot gnu dot org
2006-06-25 18:10 ` pault at gcc dot gnu dot org
4 siblings, 0 replies; 7+ messages in thread
From: pault at gcc dot gnu dot org @ 2006-06-25 15:12 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from pault at gcc dot gnu dot org 2006-06-25 15:11 -------
Subject: Bug 20867
Author: pault
Date: Sun Jun 25 15:11:02 2006
New Revision: 114987
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=114987
Log:
2006-06-25 Paul Thomas <pault@gcc.gnu.org>
PR fortran/25056
* interface.c (compare_actual_formal): Signal an error if the formal
argument is a pure procedure and the actual is not pure.
PR fortran/27554
* resolve.c (resolve_actual_arglist): If the type of procedure
passed as an actual argument is not already declared, see if it is
an intrinsic.
PR fortran/25073
* resolve.c (resolve_select): Use bits 1 and 2 of a new int to
keep track of the appearance of constant logical case expressions.
Signal an error is either value appears more than once.
PR fortran/20874
* resolve.c (resolve_fl_procedure): Signal an error if an elemental
function is not scalar valued.
PR fortran/20867
* match.c (recursive_stmt_fcn): Perform implicit typing of variables.
PR fortran/22038
* match.c (match_forall_iterator): Mark new variables as
FL_UNKNOWN if the match fails.
PR fortran/28119
* match.c (gfc_match_forall): Remove extraneous call to
gfc_match_eos.
PR fortran/25072
* resolve.c (resolve_code, resolve_function): Rework
forall_flag scheme so that it is set and has a value of
2, when the code->expr (ie. the forall mask) is resolved.
This is used to change "block" to "mask" in the non-PURE
error message.
2006-06-25 Paul Thomas <pault@gcc.gnu.org>
PR fortran/20867
* gfortran.dg/stfunc_3.f90: New test.
PR fortran/25056
* gfortran.dg/impure_actual_1.f90: New test.
PR fortran/20874
* gfortran.dg/elemental_result_1.f90: New test.
PR fortran/25073
* gfortran.dg/select_7.f90: New test.
PR fortran/27554
* intrinsic_actual_1.f: New test.
PR fortran/22038
PR fortran/28119
* gfortran.dg/forall_4.f90: New test.
PR fortran/25072
* gfortran.dg/forall_5.f90: New test.
Added:
trunk/gcc/testsuite/gfortran.dg/elemental_result_1.f90
trunk/gcc/testsuite/gfortran.dg/forall_4.f90
trunk/gcc/testsuite/gfortran.dg/forall_5.f90
trunk/gcc/testsuite/gfortran.dg/impure_actual_1.f90
trunk/gcc/testsuite/gfortran.dg/intrinsic_actual_1.f
trunk/gcc/testsuite/gfortran.dg/select_7.f90
trunk/gcc/testsuite/gfortran.dg/stfunc_3.f90
Modified:
trunk/gcc/fortran/ChangeLog
trunk/gcc/fortran/interface.c
trunk/gcc/fortran/match.c
trunk/gcc/fortran/resolve.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20867
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug fortran/20867] statement function args not given implicit type early enough
[not found] <bug-20867-6642@http.gcc.gnu.org/bugzilla/>
2005-11-02 21:24 ` tkoenig at gcc dot gnu dot org
@ 2006-06-19 13:14 ` paul dot richard dot thomas at cea dot fr
2006-06-25 15:12 ` pault at gcc dot gnu dot org
` (2 subsequent siblings)
4 siblings, 0 replies; 7+ messages in thread
From: paul dot richard dot thomas at cea dot fr @ 2006-06-19 13:14 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from paul dot richard dot thomas at cea dot fr 2006-06-19 13:00 -------
Created an attachment (id=11702)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11702&action=view)
Patch to fix this PR
Will submit tonight.
Paul
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20867
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug fortran/20867] statement function args not given implicit type early enough
[not found] <bug-20867-6642@http.gcc.gnu.org/bugzilla/>
@ 2005-11-02 21:24 ` tkoenig at gcc dot gnu dot org
2006-06-19 13:14 ` paul dot richard dot thomas at cea dot fr
` (3 subsequent siblings)
4 siblings, 0 replies; 7+ messages in thread
From: tkoenig at gcc dot gnu dot org @ 2005-11-02 21:24 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from tkoenig at gcc dot gnu dot org 2005-11-02 21:24 -------
$ cat foo.f
REAL :: st1
st1(I)=I**2 ! I implicitly typed to integer
REAL :: I
END
$ g77 foo.f
foo.f: In program `MAIN__':
foo.f:2:
st1(I)=I**2 ! I implicitly typed to integer
1
foo.f:3: (continued):
REAL :: I
2
Invalid declaration of or reference to symbol `i' at (2) [initially seen at
(1)]
--
tkoenig at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
OtherBugsDependingO| |19292
nThis| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20867
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2006-06-25 18:10 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-08 15:57 [Bug fortran/20867] New: error needed jv244 at cam dot ac dot uk
2005-04-22 14:47 ` [Bug fortran/20867] statement function args not given implicit type early enough tobi at gcc dot gnu dot org
[not found] <bug-20867-6642@http.gcc.gnu.org/bugzilla/>
2005-11-02 21:24 ` tkoenig at gcc dot gnu dot org
2006-06-19 13:14 ` paul dot richard dot thomas at cea dot fr
2006-06-25 15:12 ` pault at gcc dot gnu dot org
2006-06-25 18:09 ` pault at gcc dot gnu dot org
2006-06-25 18:10 ` pault 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).