1. 21 Mar, 2006 1 commit
    • gcc-dg.exp (cleanup-modules): New proc. · b09940e9
      	* lib/gcc-dg.exp (cleanup-modules): New proc.
      	* gfortran.dg/allocatable_function_1.f90,
      	gfortran.dg/allocate_char_star_scalar_1.f90,
      	gfortran.dg/assumed_charlen_function_1.f90,
      	gfortran.dg/assumed_dummy_1.f90,
      	gfortran.dg/assumed_shape_ranks_1.f90,
      	gfortran.dg/assumed_shape_ranks_2.f90,
      	gfortran.dg/assumed_size_dt_dummy.f90,
      	gfortran.dg/auto_char_dummy_array_1.f90,
      	gfortran.dg/auto_char_len_3.f90,
      	gfortran.dg/automatic_module_variable.f90,
      	gfortran.dg/bad_automatic_objects_1.f90,
      	gfortran.dg/char_array_constructor.f90,
      	gfortran.dg/char_array_structure_constructor.f90,
      	gfortran.dg/char_result_11.f90, gfortran.dg/char_result_9.f90,
      	gfortran.dg/contained_1.f90, gfortran.dg/convert_1.f90,
      	gfortran.dg/cray_pointers_5.f90, gfortran.dg/data_constraints_1.f90,
      	gfortran.dg/default_initialization.f90, gfortran.dg/der_charlen_1.f90,
      	gfortran.dg/der_io_2.f90, gfortran.dg/der_io_3.f90,
      	gfortran.dg/derived_pointer_recursion.f90,
      	gfortran.dg/derived_recursion.f90, gfortran.dg/der_pointer_1.f90,
      	gfortran.dg/der_pointer_3.f90, gfortran.dg/der_pointer_4.f90,
      	gfortran.dg/dummy_functions_1.f90,
      	gfortran.dg/elemental_initializer_1.f90,
      	gfortran.dg/elemental_non_intrinsic_dummy_1.f90,
      	gfortran.dg/elemental_pointer_1.f90,
      	gfortran.dg/elemental_subroutine_1.f90,
      	gfortran.dg/elemental_subroutine_2.f90, gfortran.dg/entry_1.f90,
      	gfortran.dg/entry_3.f90, gfortran.dg/enum_10.f90,
      	gfortran.dg/equiv_constraint_3.f90, gfortran.dg/func_derived_1.f90,
      	gfortran.dg/func_derived_2.f90, gfortran.dg/func_derived_3.f90,
      	gfortran.dg/generic_1.f90, gfortran.dg/generic_2.f90,
      	gfortran.dg/generic_3.f90, gfortran.dg/generic_4.f90,
      	gfortran.dg/global_references_1.f90,
      	gfortran.dg/host_used_types_1.f90, gfortran.dg/implicit_1.f90,
      	gfortran.dg/implicit_2.f90, gfortran.dg/implicit_actual.f90,
      	gfortran.dg/initialization_1.f90, gfortran.dg/int_1.f90,
      	gfortran.dg/intent_used_1.f90, gfortran.dg/interface_1.f90,
      	gfortran.dg/interface_2.f90, gfortran.dg/internal_references_2.f90,
      	gfortran.dg/io_constraints_1.f90, gfortran.dg/io_constraints_2.f90,
      	gfortran.dg/large_integer_kind_1.f90,
      	gfortran.dg/large_real_kind_1.f90,
      	gfortran.dg/module_blank_common.f90, gfortran.dg/module_commons_1.f90,
      	gfortran.dg/module_double_reuse.f90,
      	gfortran.dg/module_equivalence_1.f90,
      	gfortran.dg/module_interface_1.f90,
      	gfortran.dg/module_parameter_array_refs_1.f90,
      	gfortran.dg/named_interface.f90, gfortran.dg/namelist_14.f90,
      	gfortran.dg/namelist_15.f90, gfortran.dg/namelist_1.f90,
      	gfortran.dg/namelist_4.f90, gfortran.dg/namelist_use.f90,
      	gfortran.dg/namelist_use_only.f90, gfortran.dg/nested_modules_1.f90,
      	gfortran.dg/nested_modules_2.f90, gfortran.dg/nested_modules_3.f90,
      	gfortran.dg/nested_modules_4.f90, gfortran.dg/nested_modules_5.f90,
      	gfortran.dg/parens_5.f90, gfortran.dg/parent_result_ref_4.f90,
      	gfortran.dg/pr15164.f90, gfortran.dg/pr16861.f90,
      	gfortran.dg/pr17615.f90, gfortran.dg/pr19926.f90,
      	gfortran.dg/pr21177.f90, gfortran.dg/pr26246_1.f90,
      	gfortran.dg/private_type_1.f90, gfortran.dg/private_type_2.f90,
      	gfortran.dg/private_type_3.f90, gfortran.dg/private_type_4.f90,
      	gfortran.dg/procedure_lvalue.f90, gfortran.dg/pure_byref_3.f90,
      	gfortran.dg/same_name_1.f90,
      	gfortran.dg/sibling_dummy_procedure_1.f90,
      	gfortran.dg/sibling_dummy_procedure_2.f90,
      	gfortran.dg/sibling_dummy_procedure_3.f90,
      	gfortran.dg/substr_1.f90, gfortran.dg/substring_equivalence.f90,
      	gfortran.dg/use_allocated_1.f90, gfortran.dg/used_dummy_types_1.f90,
      	gfortran.dg/used_dummy_types_2.f90,
      	gfortran.dg/used_dummy_types_3.f90,
      	gfortran.dg/used_dummy_types_4.f90,
      	gfortran.dg/used_dummy_types_5.f90,
      	gfortran.dg/used_interface_ref.f90, gfortran.dg/used_types_1.f90,
      	gfortran.dg/userdef_operator_1.f90: Use it.
      
      From-SVN: r112264
      Janis Johnson committed
  2. 13 Feb, 2006 1 commit
    • re PR fortran/26074 (Module array cannot be automatic or assumed shape) · 2ed8d224
      2006-02-13  Paul Thomas  <pault@gcc.gnu.org>
      
      	PR fortran/26074
      	PR fortran/25103
      	* resolve.c (resolve_symbol): Extend the requirement that module
      	arrays have constant bounds to those in the main program.  At the
      	same time simplify the array bounds, to avoiding trapping parameter
      	array references, and exclude automatic character length from main
      	and modules. Rearrange resolve_symbol and resolve_derived to put as
      	each flavor together, as much as is possible and move all specific
      	code for flavors FL_VARIABLE, FL_PROCEDURE and FL_PARAMETER into new
      	functions.
      	(resolve_fl_var_and_proc, resolve_fl_variable, resolve_fl_procedure):
      	New functions to do work of resolve_symbol.
      	(resolve_index_expr): New function that is called from resolved_symbol
      	and is extracted from resolve_charlen.
      	(resolve_charlen): Call this new function.
      	(resolve_fl_derived): Renamed resolve_derived to be consistent with
      	the naming of the new functions for the other flavours.  Change the
      	charlen checking so that the style is consistent with other similar
      	checks. Add the generation of the gfc_dt_list, removed from resolve_
      	symbol.
      
      	PR fortran/20861
      	* resolve.c (resolve_actual_arglist): Prevent internal procedures
      	from being dummy arguments.
      
      	PR fortran/20871
      	* resolve.c (resolve_actual_arglist): Prevent pure but non-intrinsic
      	procedures from being dummy arguments.
      
      	PR fortran/25083
      	* resolve.c (check_data_variable): Add test that data variable is in
      	COMMON.
      
      	PR fortran/25088
      	* resolve.c (resolve_call): Add test that the subroutine does not
      	have a type.
      
      
      2006-02-13  Paul Thomas  <pault@gcc.gnu.org>
      
      	PR fortran/26074
      	PR fortran/25103
      	* gfortran.dg/module_parameter_array_refs_1.f90: New test.
      	* gfortran.dg/bad_automatic_objects_1.f90: New test.
      	* gfortran.dg/automatic_module_variable.f90: Change error message.
      
      	PR fortran/20861
      	* gfortran.dg/internal_dummy_1.f90: New test.
      
      	PR fortran/20871
      	* gfortran.dg/elemental_non_intrinsic_dummy_1.f90: New test.
      
      
      	PR fortran/25083
      	* gfortran.dg/uncommon_block_data_1.f90: New test.
      	* gfortran.dg/equiv_constraint_7.f90: Correct non-compliance of test
      	with standard.
      
      	PR fortran/25088
      	* gfortran.dg/typed_subroutine_1.f90: New test.
      
      From-SVN: r110926
      Paul Thomas committed
  3. 11 Nov, 2005 1 commit