This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/85575] Acceptance of invalid code: ordering of declaration statements with implicit typing
- From: "dominiq at lps dot ens.fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 04 May 2018 11:49:24 +0000
- Subject: [Bug fortran/85575] Acceptance of invalid code: ordering of declaration statements with implicit typing
- Auto-submitted: auto-generated
- References: <bug-85575-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85575
Dominique d'Humieres <dominiq at lps dot ens.fr> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |WAITING
Last reconfirmed| |2018-05-04
Ever confirmed|0 |1
--- Comment #4 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
Compiling
function constr_quark_loopline(ho,sho) result(cl)
integer, dimension(sho), intent(in) :: ho
integer, dimension(sho) :: hor
integer, intent(in) :: sho
end function constr_quark_loopline
with various version of gfortran gives
pr85575.f90:4:44:
integer, intent(in) :: sho
1
Error: Symbol 'sho' at (1) already has basic type of REAL
pr85575.f90:2:21:
integer, dimension(sho), intent(in) :: ho
1
Error: Expression at (1) must be of INTEGER type, found REAL
...