===================================================================
@@ -1,5 +1,11 @@
2014-07-12 Tobias Burnus <burnus@net-b.de>
+ PR fortran/61628
+ * trans-types.c (gfc_init_types): Fix data-type bug
+ with gfc_max_array_element_size.
+
+2014-07-12 Tobias Burnus <burnus@net-b.de>
+
* libgfortran.h (libcaf_atomic_codes): Add.
* trans-decl.c (gfor_fndecl_caf_atomic_def,
gfor_fndecl_caf_atomic_ref, gfor_fndecl_caf_atomic_cas,
===================================================================
@@ -955,9 +955,9 @@ gfc_init_types (void)
n = TYPE_PRECISION (gfc_array_index_type) - GFC_DTYPE_SIZE_SHIFT;
gfc_max_array_element_size
- = wide_int_to_tree (long_unsigned_type_node,
+ = wide_int_to_tree (size_type_node,
wi::mask (n, UNSIGNED,
- TYPE_PRECISION (long_unsigned_type_node)));
+ TYPE_PRECISION (size_type_node)));
boolean_type_node = gfc_get_logical_type (gfc_default_logical_kind);
boolean_true_node = build_int_cst (boolean_type_node, 1);