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
This commit is contained in:
Janus Weil 2009-08-20 11:33:01 +02:00
parent b0f86a7e6b
commit e4c1aa1996
4 changed files with 25 additions and 1 deletions

View File

@ -1,3 +1,9 @@
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,

View File

@ -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. */

View File

@ -1,3 +1,8 @@
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>

View File

@ -0,0 +1,13 @@
! { 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