[Bug fortran/33298] Wrong code for SPREAD on dummy arguments

2007-09-04 Thread toon at moene dot indiv dot nluug dot nl
--- Comment #3 from toon at moene dot indiv dot nluug dot nl 2007-09-04 08:11 --- Yeah, I have to come up with a better example. In the original code that I reduced, the interface came from a module file. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33298

[Bug fortran/33298] Wrong code for SPREAD on dummy arguments

2007-09-04 Thread burnus at gcc dot gnu dot org
--- Comment #2 from burnus at gcc dot gnu dot org 2007-09-04 07:57 --- CLOSE as invalid as subroutines with assumed-shaped dummy arguments require an explicit interface. The whole-file checking - which would diagnose this as error - is planned for GCC 4.4.0. See http://gcc.gnu.org/wiki/

[Bug fortran/33298] Wrong code for SPREAD on dummy arguments

2007-09-04 Thread jpr at csc dot fi
--- Comment #1 from jpr at csc dot fi 2007-09-04 07:49 --- The code is invalid without explicit interface to SUB(). Modified code: REAL X(2,3), Y(2) Y=[1.,2.] CALL SUB(X,Y) DO I = 1, 3 PRINT*,X(:,I) ENDDO CONTAINS SUBROUTINE SUB(A,B)