This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/29505] Should give an error when using: real :: r; r(j) = ...
- From: "kargl at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 Oct 2006 20:52:59 -0000
- Subject: [Bug fortran/29505] Should give an error when using: real :: r; r(j) = ...
- References: <bug-29505-1719@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from kargl at gcc dot gnu dot org 2006-10-18 20:52 -------
Tobias,
The code is valid fortran in that "del(j) = sin(10)" is a
statement function. Putting any executable line before that line
(such as j = 1) causes an error to be emitted. If you look at the
-fdump-parse-tree you'll see
symtree: del Ambig 0
symbol del (REAL 4)(PROCEDURE UNKNOWN-INTENT UNKNOWN-ACCESS
STATEMENT-PROC FUNCTION)
value: -5.44021130e-1
result: del
Formal arglist: j
I think the bug should be closed as INVALID.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29505