This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]