2012-11-04 Janus Weil <janus@gcc.gnu.org>
PR fortran/55199
* primary.c (gfc_match_varspec): Clear typespec if it cannot be
determined at this point.
2012-11-04 Janus Weil <janus@gcc.gnu.org>
PR fortran/55199
* gfortran.dg/associate_12.f90: New.
From-SVN: r193136
+2012-11-04 Janus Weil <janus@gcc.gnu.org>
+
+ PR fortran/55199
+ * primary.c (gfc_match_varspec): Clear typespec if it cannot be
+ determined at this point.
+
2012-10-31 Janus Weil <janus@gcc.gnu.org>
PR fortran/53718
gcc_assert (primary->symtree->n.sym->attr.referenced);
if (tbp_sym)
primary->ts = tbp_sym->ts;
+ else
+ gfc_clear_ts (&primary->ts);
m = gfc_match_actual_arglist (tbp->n.tb->subroutine,
&primary->value.compcall.actual);
+2012-11-04 Janus Weil <janus@gcc.gnu.org>
+
+ PR fortran/55199
+ * gfortran.dg/associate_12.f90: New.
+
2012-11-03 Jack Howarth <howarth@bromo.med.uc.edu>
PR target/54255
--- /dev/null
+! { dg-do compile }
+!
+! PR 55199: [OOP] Equivalenced variable has wrong type when used with generic member function
+!
+! Contributed by Rich Townsend <townsend@astro.wisc.edu>
+
+module assoc_err_m
+ implicit none
+ type :: foo_t
+ contains
+ procedure :: func_1
+ generic :: func => func_1
+ end type
+contains
+ real function func_1 (this)
+ class(foo_t), intent(in) :: this
+ end function
+end module
+
+program assoc_err
+ use assoc_err_m
+ implicit none
+ type(foo_t) :: f
+ associate(b => f%func())
+ print *, 1. + b
+ end associate
+end program
+
+! { dg-final { cleanup-modules "assoc_err_m" } }