This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [Patch, fortran] PR31154 , PR31229 and PR33334 - use associated or imported function characteristics.
- From: dominiq at lps dot ens dot fr (Dominique Dhumieres)
- To: fortran at gcc dot gnu dot org
- Cc: paul dot richard dot thomas at gmail dot co
- Date: Wed, 26 Sep 2007 16:59:06 +0200
- Subject: Re: [Patch, fortran] PR31154 , PR31229 and PR33334 - use associated or imported function characteristics.
On Target: powerpc-apple-darwin8, the patch works as advertised
on my tests, however I have an unexpected failure:
/opt/gcc/_gcc-clean/gcc/testsuite/gfortran.dg/derived_function_interface_1.f90:13.2:
ext_fun%i = 1
1
Error: Unclassifiable statement at (1)
/opt/gcc/_gcc-clean/gcc/testsuite/gfortran.dg/derived_function_interface_1.f90:9:
type(foo) function ext_fun()
1
Error: The type for function 'ext_fun' at (1) is not accessible
/opt/gcc/_gcc-clean/gcc/testsuite/gfortran.dg/derived_function_interface_1.f90:21.4:
type(foo) function fun()
1
Error: The type for function 'fun' at (1) is not accessible
/opt/gcc/_gcc-clean/gcc/testsuite/gfortran.dg/derived_function_interface_1.f90:26.4:
type(foo) function ext_fun()
1
Error: The type for function 'ext_fun' at (1) is not accessible
/opt/gcc/_gcc-clean/gcc/testsuite/gfortran.dg/derived_function_interface_1.f90:37.26:
type(foo) function fun() ! { dg-error "already has an explicit interface" }
1
Error: Symbol 'fun' at (1) already has an explicit interface
/opt/gcc/_gcc-clean/gcc/testsuite/gfortran.dg/derived_function_interface_1.f90:38.5:
end function fun ! { dg-error "Expecting END PROGRAM" }
1
Error: Expecting END PROGRAM statement at (1)
/opt/gcc/_gcc-clean/gcc/testsuite/gfortran.dg/derived_function_interface_1.f90:32.6:
x = ext_fun ()
1
Error: Can't convert REAL(4) to TYPE(foo) at (1)
in both 32 and 64 bit modes.
Dominique