------- Comment #8 from pault at gcc dot gnu dot org 2007-01-03 21:27 ------- Subject: Bug 30084
Author: pault Date: Wed Jan 3 21:27:17 2007 New Revision: 120399 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=120399 Log: 2007-01-03 Paul Thomas <[EMAIL PROTECTED]> Backport from trunk PR fortran/25818 * trans-array.c (gfc_trans_g77_array): If the variable is optional or not always present, make the statement conditional on presence of the argument. * gfortran.h : Add symbol_attribute not_always_present. * resolve.c (check_argument_lists): New function to check if arguments are not present in all entries. PR fortran/30084 * module.c (mio_component_ref): Move treatment of unique name variables, during output, to fix_mio_expr. (fix_mio_expr): New function that fixes defective expressions before they are written to the module file. (mio_expr): Call the new function. (resolve_entries): Call check_argument_lists. 2007-01-03 Paul Thomas <[EMAIL PROTECTED]> PR fortran/25818 * gfortran.dg/entry_array_specs_2.f: New test. PR fortran/30084 * gfortran.dg/nested_modules_6.f90: New test. Added: branches/gcc-4_2-branch/gcc/testsuite/gfortran.dg/entry_array_specs_2.f branches/gcc-4_2-branch/gcc/testsuite/gfortran.dg/nested_modules_6.f90 Modified: branches/gcc-4_2-branch/gcc/fortran/ChangeLog branches/gcc-4_2-branch/gcc/fortran/gfortran.h branches/gcc-4_2-branch/gcc/fortran/module.c branches/gcc-4_2-branch/gcc/fortran/resolve.c branches/gcc-4_2-branch/gcc/fortran/trans-array.c branches/gcc-4_2-branch/gcc/testsuite/ChangeLog -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30084