This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/59023] [4.9 regression] ICE in gfc_search_interface with BIND(C)
- From: "janus at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 31 Dec 2013 00:03:13 +0000
- Subject: [Bug fortran/59023] [4.9 regression] ICE in gfc_search_interface with BIND(C)
- Auto-submitted: auto-generated
- References: <bug-59023-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59023
janus at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
Assignee|unassigned at gcc dot gnu.org |janus at gcc dot gnu.org
--- Comment #10 from janus at gcc dot gnu.org ---
Here is a variant which regtests cleanly:
Index: gcc/fortran/resolve.c
===================================================================
--- gcc/fortran/resolve.c (revision 206252)
+++ gcc/fortran/resolve.c (working copy)
@@ -2351,6 +2351,7 @@ resolve_global_procedure (gfc_symbol *sym, locus *
if ((sym->attr.if_source == IFSRC_UNKNOWN
|| sym->attr.if_source == IFSRC_IFBODY)
&& gsym->type != GSYM_UNKNOWN
+ && !gsym->binding_label
&& gsym->ns
&& gsym->ns->resolved != -1
&& gsym->ns->proc_name