[Bug fortran/31222] Rejected: implicitly-typed dummys used in initialization expressions
fxcoudert at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Fri Mar 16 15:07:00 GMT 2007
------- Comment #2 from fxcoudert at gcc dot gnu dot org 2007-03-16 15:06 -------
Tobias, you beat me to it, I only got PR31225 :)
Here is the analysis I posted in my bug-report:
------------------------------------
The following valid code is rejected by gfortran: (When the lines giving
explicit type to mode and dis are uncommented, gfortran compiles it fine.)
$ cat a.f90
subroutine mysub1(a,b,mode,dis)
! integer :: mode
! real :: dis
dimension a(abs(mode)),b(int(dis))
print *, mod
write (*,*) abs(mode), nint(dis)
end subroutine
program testprog
call mysub1((/1.,2./),(/1.,2.,3./),-2, 3.2)
end
--
fxcoudert at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Known to fail| |4.1.3 4.2.0 4.3.0
Last reconfirmed|0000-00-00 00:00:00 |2007-03-16 15:06:50
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31222
More information about the Gcc-bugs
mailing list