[Patch, Fortran, OOP] PR 49638: [OOP] length parameter is ignored when overriding type bound character functions with constant length.
Janus Weil
janus@gcc.gnu.org
Sat Aug 13 13:12:00 GMT 2011
Hi Thomas, hi all,
2011/8/7 Thomas Koenig <tkoenig@netcologne.de>:
> When extending the values of gfc_dep_compare_expr, we will need to go
> through all its uses (making sure we change == -2 to <= -2).
attached is a patch which makes a start with this.
For now, it changes the return value to "-3" for two cases:
1) different expr_types
2) non-identical variables
I tried to take care of all places which are checking for a return
value of "-2" and I hope I missed none.
Any objections or ok for trunk? (Regtested successfully.)
Cheers,
Janus
2011-08-13 Janus Weil <janus@gcc.gnu.org>
PR fortran/49638
* dependency.c (gfc_dep_compare_expr): Add new result value "-3".
(gfc_check_element_vs_section,gfc_check_element_vs_element): Handle
result value "-3".
* frontend-passes.c (optimize_comparison): Ditto.
* interface.c (gfc_check_typebound_override): Ditto.
2011-08-13 Janus Weil <janus@gcc.gnu.org>
PR fortran/49638
* gfortran.dg/typebound_override_1.f90: Modified.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr49638_part3.diff
Type: text/x-diff
Size: 5205 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20110813/09389291/attachment.bin>
More information about the Fortran
mailing list