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/29505] Should give an error when using: real :: r; r(j) = ...



------- 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


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