Commit 6bd59684 by Janus Weil

re PR fortran/58998 (Generic interface problem with gfortran)

2013-12-30  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/58998
	* resolve.c (resolve_symbol): Check that symbol is not only flavorless
	but also untyped.

2013-12-30  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/58998
	* gfortran.dg/generic_28.f90: New.

From-SVN: r206249
parent acdcd61b
2013-12-30 Janus Weil <janus@gcc.gnu.org>
PR fortran/58998
* resolve.c (resolve_symbol): Check that symbol is not only flavorless
but also untyped.
2013-12-29 Janus Weil <janus@gcc.gnu.org> 2013-12-29 Janus Weil <janus@gcc.gnu.org>
PR fortran/59612 PR fortran/59612
......
...@@ -12732,7 +12732,8 @@ resolve_symbol (gfc_symbol *sym) ...@@ -12732,7 +12732,8 @@ resolve_symbol (gfc_symbol *sym)
if (sym->attr.flavor == FL_UNKNOWN if (sym->attr.flavor == FL_UNKNOWN
|| (sym->attr.flavor == FL_PROCEDURE && !sym->attr.intrinsic || (sym->attr.flavor == FL_PROCEDURE && !sym->attr.intrinsic
&& !sym->attr.generic && !sym->attr.external && !sym->attr.generic && !sym->attr.external
&& sym->attr.if_source == IFSRC_UNKNOWN)) && sym->attr.if_source == IFSRC_UNKNOWN
&& sym->ts.type == BT_UNKNOWN))
{ {
/* If we find that a flavorless symbol is an interface in one of the /* If we find that a flavorless symbol is an interface in one of the
......
2013-12-30 Janus Weil <janus@gcc.gnu.org>
PR fortran/58998
* gfortran.dg/generic_28.f90: New.
2013-12-30 Jakub Jelinek <jakub@redhat.com> 2013-12-30 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/59591 PR tree-optimization/59591
......
! { dg-do compile }
!
! PR 58998: [4.8/4.9 Regression] Generic interface problem with gfortran
!
! Contributed by Paul van Delst
interface iargc
procedure iargc_8
end interface
contains
integer(8) function iargc_8()
integer(4) iargc
iargc_8 = iargc()
end function
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