Commit 6e48e779 by Louis Krupp Committed by Louis Krupp

re PR fortran/67524 (ICE on using implicit character instead of implicit none etc.)

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
parent 04a32443
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
......
......@@ -13886,7 +13886,10 @@ resolve_symbol (gfc_symbol *sym)
/* 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
......
! { 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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment