This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [Patch, fortran] PR31154 and PR31229 - use associated and imported function kind parameters
- From: Tobias Burnus <burnus at net-b dot de>
- To: Paul Richard Thomas <paul dot richard dot thomas at gmail dot com>
- Cc: "fortran at gcc dot gnu dot org" <fortran at gcc dot gnu dot org>, gcc-patches List <gcc-patches at gcc dot gnu dot org>
- Date: Sat, 08 Sep 2007 16:50:39 +0200
- Subject: Re: [Patch, fortran] PR31154 and PR31229 - use associated and imported function kind parameters
- References: <339c37f20709070725q79ab7ba7qdf9e6acd87b228f5@mail.gmail.com>
Paul Richard Thomas wrote:
> Regtested on Cygwin_NT/amd64 - OK for trunk?
>
Not OK. The patch causes a regression:
Error: Can't convert REAL(4) to REAL(-1) at (1)
module m
integer, parameter :: dp = kind(0d0)
contains
real(dp) function func()
implicit none
func = 5.0
end function func
end module m
end
(Found with Espresso/PWSCF)
Tobias