+++ This bug was initially created as a clone of Bug #30922 +++
gfortran currently does not like the following:
------------------------------------
module x
implicit none
integer, parameter :: d=8
interface
real(d) function y()
import
end function
end interface
end module x
------------------------------------
real(d) function y()
1
Error: Parameter 'd' at (1) has not been declared or is a variable, which does
not reduce to a constant expression
(A real-world example for the latter is:
http://users.erols.com/dnagle/pub/pthread.f03,
which also needs ISO_C_BINDING support.)
--
Summary: IMPORT fails for "<imported symbol> FUNCTION (...)"
kind of procedures
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Keywords: rejects-valid
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: burnus at gcc dot gnu dot org
BugsThisDependsOn: 30922
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31154