2014-01-06 Janus Weil <janus@gcc.gnu.org>
PR fortran/59023
PR fortran/59662
* resolve.c (resolve_global_procedure): Don't apply to c-binding
procedures.
(gfc_verify_binding_labels): Remove duplicate line.
2014-01-06 Janus Weil <janus@gcc.gnu.org>
PR fortran/59023
* gfortran.dg/bind_c_procs_2.f90: New.
From-SVN: r206355
+2014-01-06 Janus Weil <janus@gcc.gnu.org>
+
+ PR fortran/59023
+ PR fortran/59662
+ * resolve.c (resolve_global_procedure): Don't apply to c-binding
+ procedures.
+ (gfc_verify_binding_labels): Remove duplicate line.
+
2014-01-04 Janus Weil <janus@gcc.gnu.org>
PR fortran/59547
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
gsym->where = sym->declared_at;
gsym->sym_name = sym->name;
gsym->binding_label = sym->binding_label;
- gsym->binding_label = sym->binding_label;
gsym->ns = sym->ns;
gsym->mod_name = module;
if (sym->attr.function)
+2014-01-06 Janus Weil <janus@gcc.gnu.org>
+
+ PR fortran/59023
+ * gfortran.dg/bind_c_procs_2.f90: New.
+
2014-01-05 John David Anglin <danglin@gcc.gnu.org>
* gcc.dg/tree-ssa/reassoc-33.c: Don't run on hppa*-*-*.
--- /dev/null
+! { dg-do compile }
+!
+! PR 59023: [4.9 regression] ICE in gfc_search_interface with BIND(C)
+!
+! Contributed by Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
+
+ type t
+ integer hidden
+ end type
+
+contains
+
+ subroutine bar
+ type(t) :: toto
+ interface
+ integer function helper() bind(c)
+ end function
+ end interface
+ toto = t(helper())
+ end subroutine
+
+end