This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/31154] New: IMPORT fails for "<imported symbol> FUNCTION (...)" kind of procedures
- From: "burnus at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Mar 2007 19:16:23 -0000
- Subject: [Bug fortran/31154] New: IMPORT fails for "<imported symbol> FUNCTION (...)" kind of procedures
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
+++ 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