This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/41121] [4.5 Regression] compile-time error when building BLAS with -fimplicit-none
- From: "janus at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 Aug 2009 08:04:38 -0000
- Subject: [Bug fortran/41121] [4.5 Regression] compile-time error when building BLAS with -fimplicit-none
- References: <bug-41121-17721@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from janus at gcc dot gnu dot org 2009-08-20 08:04 -------
Here's the fix:
Index: gcc/fortran/resolve.c
===================================================================
--- gcc/fortran/resolve.c (revision 150933)
+++ gcc/fortran/resolve.c (working copy)
@@ -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. */
Will commit as obvious after performing a regtest.
--
janus at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |janus at gcc dot gnu dot org
|dot org |
Status|NEW |ASSIGNED
Last reconfirmed|2009-08-19 15:26:19 |2009-08-20 08:04:37
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41121