Commit 858f1fa2 by Daniel Kraft Committed by Daniel Kraft

re PR fortran/35770 (implicit character(s) hides type of internal function)

2008-09-13  Daniel Kraft  <d@domob.eu>

	PR fortran/35770
	* primary.c (gfc_match_varspec): Added missing type-spec clearing
	after wrong implicit character typing.

2008-09-13  Daniel Kraft  <d@domob.eu>

	PR fortran/35770
	* gfortran.dg/implicit_13.f90: New test.

From-SVN: r140336
parent f754734f
2008-09-13 Daniel Kraft <d@domob.eu>
PR fortran/35770
* primary.c (gfc_match_varspec): Added missing type-spec clearing
after wrong implicit character typing.
2008-09-12 Richard Guenther <rguenther@suse.de>
* trans-intrinsic.c (gfc_conv_intrinsic_transfer): Use
......
......@@ -1869,7 +1869,10 @@ check_substring:
case MATCH_NO:
if (unknown)
gfc_clear_ts (&primary->ts);
{
gfc_clear_ts (&primary->ts);
gfc_clear_ts (&sym->ts);
}
break;
case MATCH_ERROR:
......
2008-09-13 Daniel Kraft <d@domob.eu>
PR fortran/35770
* gfortran.dg/implicit_13.f90: New test.
2008-09-11 Steve Ellcey <sje@cup.hp.com>
* gcc.c-torture/compile/pr11832.c: xfail on ia64-*-*.
......
! { dg-do compile }
! PR fortran/35770
! Implicit declaration hides type of internal function.
! Contributed by Dick Hendrickson <dick.hendrickson@gmail.com>
IMPLICIT CHARACTER (s)
REAL :: RDA
RDA = S_REAL_SQRT_I(42) ! { dg-bogus "Can't convert" }
CONTAINS
REAL FUNCTION S_REAL_SQRT_I(I) RESULT (R)
IMPLICIT NONE
INTEGER :: I
R = 0.0
END FUNCTION S_REAL_SQRT_I
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