[Patch, Fortran, 4.5 Regression] PR 40848
Janus Weil
janus@gcc.gnu.org
Sun Jul 26 14:24:00 GMT 2009
Hi all,
here is a fix for a regression, which was introduced by r148519. With
this revision I implemented better error messages for interface
checks, with the side effect that I changed the order of some checks
in gfc_compare_interfaces. The ICE here comes about because
'count_types_test' is called only after 'generic_correspondence', and
the patch reverts this to its original order. It also makes sure
'count_types_test' is only called for generic interfaces (since
14.1.2.3 in the F95 standard only applies to generic interfaces).
The testsuite yields no failures with this patch on
x86_64-unknown-linux-gnu. Ok for trunk?
Cheers,
Janus
2009-07-26 Janus Weil <janus@gcc.gnu.org>
PR fortran/40848
* interface.c (gfc_compare_interfaces): Call 'count_types_test' before
'generic_correspondence', and only if checking a generic interface.
2009-07-26 Janus Weil <janus@gcc.gnu.org>
PR fortran/40848
* gfortran.dg/altreturn_7.f90: New.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr40848.diff
Type: text/x-diff
Size: 745 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20090726/e143e044/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: altreturn_7.f90
Type: application/octet-stream
Size: 436 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20090726/e143e044/attachment.obj>
More information about the Gcc-patches
mailing list