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] PR15809 (PR19276) - ICE and segfault with automatic character, dummy pointer arrays


Paul T,

Does this patch of you solve the following:

> cat a.f
      character*8 a
      a="r"
      call s(a)
      end
      subroutine s(a)
      character*(*) a
      call c(a)
      end
> cat c.c
#include <stdio.h>

void c_(char *a, int i)
{
        printf(">%*.*s<\n",i,i,a);
}

Because this is probably the problem I was struggling yesterday with (I was in a discussion with Janne on IRC over it).

If that's true, great !

--
Toon Moene, KNMI, The Netherlands
Phone: +31 30 2206443; e-mail: moene@knmi.nl


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