2012-12-16 Tobias Burnus <burnus@net-b.de>
+ PR fortran/55197
+ * module.c (gfc_use_module): Free rename list only for
+ internally generated intrinsic modules.
+
+2012-12-16 Tobias Burnus <burnus@net-b.de>
+
* trans-intrinsic.c (conv_intrinsic_move_alloc): Set dynamic
type of the FROM variable to the declared type.
"intrinsic module at %C") != FAILURE)
{
use_iso_fortran_env_module ();
+ free_rename (module->rename);
+ module->rename = NULL;
gfc_current_locus = old_locus;
module->intrinsic = true;
return;
"ISO_C_BINDING module at %C") != FAILURE)
{
import_iso_c_binding_module();
+ free_rename (module->rename);
+ module->rename = NULL;
gfc_current_locus = old_locus;
module->intrinsic = true;
return;
next = module_list->next;
rename_list_remove_duplicate (module_list->rename);
gfc_use_module (module_list);
- if (module_list->intrinsic)
- free_rename (module_list->rename);
free (module_list);
}
gfc_rename_list = NULL;
2012-12-16 Tobias Burnus <burnus@net-b.de>
+ PR fortran/55197
+ * gfortran.dg/gomp/use_intrinsic_1.f90: New.
+
+2012-12-16 Tobias Burnus <burnus@net-b.de>
+
* gfortran.dg/move_alloc_14.f90: New.
2012-12-16 Tobias Burnus <burnus@net-b.de>
--- /dev/null
+! { dg-do compile }
+!
+! PR fortran/55197
+!
+! Contributed by Erik Toussaint
+!
+
+use, intrinsic :: omp_lib, only: omp_get_num_threads
+use, intrinsic :: omp_lib_kinds , foo => omp_lock_kind
+print *, foo
+end