[Patch, fortran] PR49630 - [OOP] ICE on obsolescent deferred-length type bound character function
Paul Richard Thomas
paul.richard.thomas@gmail.com
Tue Jun 19 09:16:00 GMT 2018
I got caught with a wild goose chase with this one. I tried to get it
to work before seeing the standard reference in trans-expr.c. In fact,
it would be impossible to fix because there is no way to resolve
different instances of the abstract interface with different character
lengths.
Bootstrapped and regtested on FC28/x86_64 - OK for trunk.
I do not intend to backport it unless there is any enthusiasm for me to do so.
Regards
Paul
2018-06-19 Paul Thomas <pault@gcc.gnu.org>
PR fortran/49630
* resolve.c (resolve_contained_fntype): Change standard ref.
from F95 to F2003: C418. Correct a spelling error in a comment.
It is an error for an abstract interface to have an assumed
character length result.
* trans-expr.c (gfc_conv_procedure_call): Likewise change the
standard reference.
2018-06-19 Paul Thomas <pault@gcc.gnu.org>
PR fortran/49630
* gfortran.dg/assumed_charlen_function_7.f90: New test.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: submit.diff
Type: text/x-patch
Size: 4775 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20180619/5db6cb74/attachment.bin>
More information about the Gcc-patches
mailing list