diff options
author | Jerry DeLisle <jvdelisle@gcc.gnu.org> | 2010-01-15 01:47:43 +0000 |
---|---|---|
committer | Jerry DeLisle <jvdelisle@gcc.gnu.org> | 2010-01-15 01:47:43 +0000 |
commit | 0175478decf822d4b10d8ff850e55751a50bf70a (patch) | |
tree | 46bace48ee8dd222b909c1c263606a7425cece35 /gcc/fortran/resolve.c | |
parent | ab69346017b152c6ae4c1bcffe87cbf5e33ee263 (diff) | |
download | gcc-0175478decf822d4b10d8ff850e55751a50bf70a.zip gcc-0175478decf822d4b10d8ff850e55751a50bf70a.tar.gz gcc-0175478decf822d4b10d8ff850e55751a50bf70a.tar.bz2 |
re PR fortran/42684 (ICE when interface operator(xx) available through host and use assoc in module procedure)
2010-01-14 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR fortran/42684
* interface.c (check_interface1): Pass symbol name rather than NULL to
gfc_compare_interfaces. (gfc_compare_interfaces): Add assert to
trap MULL.
* resolve.c (check_generic_tbp_ambiguity): Pass symbol name rather
than NULL to gfc_compare_interfaces.
From-SVN: r155930
Diffstat (limited to 'gcc/fortran/resolve.c')
-rw-r--r-- | gcc/fortran/resolve.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/fortran/resolve.c b/gcc/fortran/resolve.c index 7321c0d..9212521 100644 --- a/gcc/fortran/resolve.c +++ b/gcc/fortran/resolve.c @@ -9712,7 +9712,7 @@ check_generic_tbp_ambiguity (gfc_tbp_generic* t1, gfc_tbp_generic* t2, } /* Compare the interfaces. */ - if (gfc_compare_interfaces (sym1, sym2, NULL, 1, 0, NULL, 0)) + if (gfc_compare_interfaces (sym1, sym2, sym2->name, 1, 0, NULL, 0)) { gfc_error ("'%s' and '%s' for GENERIC '%s' at %L are ambiguous", sym1->name, sym2->name, generic_name, &where); |