2015-10-19 Steven G. Kargl <kargl@gcc.gnu.org>
* resolve.c (gfc_verify_binding_labels): Check for NULL pointer.
2015-10-19 Steven G. Kargl <kargl@gcc.gnu.org>
* gfortran.dg/pr67900.f90: New tests.
From-SVN: r229013
+2015-10-19 Steven G. Kargl <kargl@gcc.gnu.org>
+
+ * resolve.c (gfc_verify_binding_labels): Check for NULL pointer.
+
2015-10-19 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/68019
sym->binding_label = NULL;
}
- else if (sym->attr.flavor == FL_VARIABLE
+ else if (sym->attr.flavor == FL_VARIABLE && module
&& (strcmp (module, gsym->mod_name) != 0
|| strcmp (sym->name, gsym->sym_name) != 0))
{
+2015-10-19 Steven G. Kargl <kargl@gcc.gnu.org>
+
+ * gfortran.dg/pr67900.f90: New tests.
+
2015-10-19 Pierre-Marie de Rodat <derodat@adacore.com>
* gnat.dg/opt50.adb: New test.
--- /dev/null
+! { dg-do compile }
+! PR fortran/67900
+! Original code contributed by Giorgian Borca-Tasciuc
+! giorgianb at gmail dot com
+!
+program main
+ implicit none
+ interface f
+ function f_real(x)
+ real, bind(c) :: x
+ real :: f_real
+ end function f_real
+
+ function f_integer(x)
+ integer, bind(c) :: x
+ integer :: f_integer
+ end function f_integer
+ end interface f
+end program main