This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [Patch, Fortran, 4.5 Regression] PR 40822: Internal compiler error when Fortran intrinsic LEN referenced before explicit declaration
- From: Tobias Burnus <burnus at net-b dot de>
- To: Janus Weil <janus at gcc dot gnu dot org>
- Cc: gfortran <fortran at gcc dot gnu dot org>, gcc patches <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 23 Jul 2009 16:20:47 +0200
- Subject: Re: [Patch, Fortran, 4.5 Regression] PR 40822: Internal compiler error when Fortran intrinsic LEN referenced before explicit declaration
- References: <854832d40907230544i10a4f142g96f3b408f495b1e3@mail.gmail.com>
Janus Weil wrote:
> here is a close-to-obvious two-line patch, fixing a regression which
> was introduced by one of my earlier ProcPtr patches.
I have not fully thought about the patch. But if I read
+ if (formal_arg->sym->ts.type == BT_CHARACTER)
+ formal_arg->sym->ts.cl = gfc_get_charlen ();
+
I wonder whether this does not just allocate space for the character
length data, without actually properly initializing the struct.
Tobias