This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC 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]

[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


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.


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