[Fortran,patch] Fix problem with IMPORT (PR27546)

Tobias Burnus burnus@net-b.de
Sat Nov 18 10:46:00 GMT 2006


:ADDPATCH fortran:

This fixes one of the two problems IMPORT has.
(I will now to find the proper solutions for the "IMPORT :: symbol-list"
problem, which is really disjunct.)

This used to give an error as "dp" couldn't be found, derived types
could be found before.

integer, parameter :: dp = 8
interface
   subroutine foo(x)
      import
      real(dp) :: x
   end subroutine foo
end interface

The patch is really trivial!

(I know I looked at primary.c if before, but seemingly not close enough. :-(


I did a build and regression test on x86_64-unknown-linux-gnu.
I had no failures (when ignoring the results with -froll-loops and
-funroll-all-loops).


Ok for the trunk?

Tobias

fortran/
2006-11-17  Tobias Burnus  <burnus@net-b.de>

    PR fortran/27546
    * primary.c (gfc_match_rvalue): Added IMPORT support.


testsuite/
2006-11-17  Tobias Burnus  <burnus@net-b.de>

    PR fortran/27546
    * gfortran.dg/import.f90: Extended test.
    * gfortran.dg/import2.f90: Extended test.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: import-fix1.diff
Type: text/x-patch
Size: 3936 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20061118/db93ec2c/attachment.bin>


More information about the Gcc-patches mailing list