This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
RE: [Patch, fortran] PR15809 (PR19276) - ICE and segfault with automatic character, dummy pointer arrays
- From: Toon Moene <moene at knmi dot nl>
- To: paul dot richard dot thomas at cea dot fr
- Cc: gcc-patches at gcc dot gnu dot org, fortran at gcc dot gnu dot org
- Date: Wed, 30 Nov 2005 12:49:51 +0000
- Subject: 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