This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch, Fortran] PING: PR fortran/37746: -fbounds-check for string lengths of dummy arguments
- From: Tobias Burnus <burnus at net-b dot de>
- To: Steve Kargl <sgk at troutmask dot apl dot washington dot edu>
- Cc: Daniel Kraft <d at domob dot eu>, Fortran List <fortran at gcc dot gnu dot org>, gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Sun, 29 Mar 2009 19:41:15 +0200
- Subject: Re: [Patch, Fortran] PING: PR fortran/37746: -fbounds-check for string lengths of dummy arguments
- References: <49CE9D5E.8040407@domob.eu> <20090329173511.GB94249@troutmask.apl.washington.edu>
Steve Kargl wrote:
> However, one thing that comes to
> mind is whether the code will have false positive for ISO
> varying strings.
>
There should be no issue in the way they are implemented (user
"ASSIGNMENT(=)" subroutine); however, there will be a problem with
allocatable strings ("character(len=:),allocatable"), which are not yet
implemented. But this is not different from assignments of scalars to
allocatable arrays: Both are supposed to be reallocated on the fly,
something which is not yet implemented.
Tobias