2016-10-05 Louis Krupp <louis.krupp@zoho.com>
PR fortran/67524
* gfortran.dg/pr67524.f90: New test.
2016-10-05 Louis Krupp <louis.krupp@zoho.com>
PR fortran/67524
* resolve.c (resolve_symbol): Don't apply default type rules to
mixed-entry master created for function entry points.
From-SVN: r240797
+2016-10-05 Louis Krupp <louis.krupp@zoho.com>
+
+ PR fortran/67524
+ * resolve.c (resolve_symbol): Don't apply default type rules to
+ mixed-entry master created for function entry points.
+
2016-09-30 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR fortran/66643
/* The specific case of an external procedure should emit an error
in the case that there is no implicit type. */
if (!mp_flag)
- gfc_set_default_type (sym, sym->attr.external, NULL);
+ {
+ if (!sym->attr.mixed_entry_master)
+ gfc_set_default_type (sym, sym->attr.external, NULL);
+ }
else
{
/* Result may be in another namespace. */
+2016-10-05 Louis Krupp <louis.krupp@zoho.com>
+
+ PR fortran/67524
+ * gfortran.dg/pr67524.f90: New test.
+
2016-10-05 Jakub Jelinek <jakub@redhat.com>
PR sanitizer/77823
--- /dev/null
+! { dg-do run }
+module m
+ implicit character(8) (a-z)
+contains
+ function f(x)
+ integer :: x
+ integer :: f
+ real :: e
+ f = x
+ return
+ entry e(x)
+ e = x
+ end
+end module
+
+program p
+ use m
+ if (f(1) /= 1) call abort
+ if (e(1) /= 1.0) call abort
+end