This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/47569] [4.3/4.4/4.5/4.6 Regression] gfortran does not detect that the parameters for passing a partial string to a subroutine are incorrect
- From: "burnus at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 10 Feb 2011 15:18:12 +0000
- Subject: [Bug fortran/47569] [4.3/4.4/4.5/4.6 Regression] gfortran does not detect that the parameters for passing a partial string to a subroutine are incorrect
- Auto-submitted: auto-generated
- References: <bug-47569-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47569
--- Comment #7 from Tobias Burnus <burnus at gcc dot gnu.org> 2011-02-10 15:18:09 UTC ---
(In reply to comment #0)
> The example uses s(i) in stead of s(i:j) to pass the string, and this was a
> common usage pattern in the old fortran77 days, so this may bother more users.
Side remark: While this usage is common in Fortran 77 (or rather Fortran IV and
Fortran 66), it is not commonly found together with derived types.
* * *
(In reply to comment #6)
> Full patch, currently regtesting; needs a cross check and can then be
> submitted.
Fails for argument_checking_11.f90, argument_checking_12.f90,
argument_checking_13.f90, and argument_checking_14.f90 ... to be fixed later.