This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/26041] FORTRAN compiler won't compile the valid code
- From: "hjl at lucon dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 31 Jan 2006 23:34:10 -0000
- Subject: [Bug fortran/26041] FORTRAN compiler won't compile the valid code
- References: <bug-26041-682@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from hjl at lucon dot org 2006-01-31 23:34 -------
The problem is in gfc_resolve:
void
gfc_resolve (gfc_namespace * ns)
{
...
gfc_traverse_ns (ns, resolve_symbol);
...
for (n = ns->contained; n; n = n->sibling)
gfc_resolve (ns)
...
resolve_code (ns->code, ns);
...
}
Depending on the order of the code, resolve_code may be called before symbols
are resolved.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26041