[Patch,Fortran] Copy more attributes for PROCEDURE() (PR35830)

Janus Weil jaydub66@googlemail.com
Sat Jun 7 22:51:00 GMT 2008


> This is compiled without any trouble, but when executing I get a
> Fortran runtime error: Attempting to allocate already allocated array

Actually this was done on a clean trunk. With your patch I get:

  procedure(ai) :: f
                   1
Error: Array 'f' at (1) cannot have a deferred shape

Additionally copying attr.allocatable fixes this and makes the program
run properly.
Cheers,
Janus



More information about the Fortran mailing list