Commit e4c1aa19 by Janus Weil

re PR fortran/41121 (compile-time error when building BLAS with -fimplicit-none)

2009-08-20  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/41121
	* resolve.c (resolve_symbol): Don't resolve formal_ns of intrinsic
	procedures.

2009-08-20  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/41121
	* gfortran.dg/intrinsic_5.f90: New.

From-SVN: r150957
parent b0f86a7e
2009-08-20 Janus Weil <janus@gcc.gnu.org>
PR fortran/41121
* resolve.c (resolve_symbol): Don't resolve formal_ns of intrinsic
procedures.
2009-08-18 Michael Matz <matz@suse.de>
* trans-expr.c (gfc_conv_substring): Don't evaluate casted decl early,
......
......@@ -10280,7 +10280,7 @@ resolve_symbol (gfc_symbol *sym)
/* Resolve formal namespaces. */
if (sym->formal_ns && sym->formal_ns != gfc_current_ns
&& !sym->attr.contained)
&& !sym->attr.contained && !sym->attr.intrinsic)
gfc_resolve (sym->formal_ns);
/* Make sure the formal namespace is present. */
......
2009-08-20 Janus Weil <janus@gcc.gnu.org>
PR fortran/41121
* gfortran.dg/intrinsic_5.f90: New.
2009-08-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
Richard Earnshaw <richard.earnshaw@arm.com>
......
! { dg-do compile }
! { dg-options "-fimplicit-none" }
!
! PR 41121: [4.5 Regression] compile-time error when building BLAS with -fimplicit-none
!
! Original test case: http://www.netlib.org/blas/dgbmv.f
! Reduced by Joost VandeVondele <jv244@cam.ac.uk>
INTRINSIC MIN
INTEGER :: I,J
print *,MIN(I,J)
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