]> gcc.gnu.org Git - gcc.git/commit
re PR fortran/34665 (Cannot pass scalar to array argument 'a')
authorTobias Burnus <burnus@net-b.de>
Sun, 13 Jan 2008 21:35:33 +0000 (22:35 +0100)
committerTobias Burnus <burnus@gcc.gnu.org>
Sun, 13 Jan 2008 21:35:33 +0000 (22:35 +0100)
commit5ad6345e92e2e6f191b943cf7cba49bb5d90ec27
tree99e3aac4649951ef115b9fe3fb115ab5d90a0f83
parent083de129c8dd26ae3dcd5f24c77a3f424763e69f
re PR fortran/34665 (Cannot pass scalar to array argument 'a')

2008-01-13  Tobias Burnus  <burnus@net-b.de>

        PR fortran/34665
        * resolve.c (resolve_actual_arglist): For expressions,
        also check for assume-sized arrays.
        * interface.c (compare_parameter): Move F2003 character checks
        here, print error messages here, reject elements of
        assumed-shape array as argument to dummy arrays.
        (compare_actual_formal): Update for the changes above.

2008-01-13  Tobias Burnus  <burnus@net-b.de>

        PR fortran/34665
        * gfortran.dg/argument_checking_11.f90: New.
        * gfortran.dg/argument_checking_12.f90: New.
        * gfortran.dg/used_dummy_types_4.f90: Update dg-error.
        * gfortran.dg/c_assoc_2.f03: Update dg-error.
        * gfortran.dg/argument_checking_3.f90: Ditto.
        * gfortran.dg/pointer_intent_2.f90: Ditto.
        * gfortran.dg/import2.f90: Ditto.
        * gfortran.dg/assumed_shape_ranks_1.f90: Ditto.
        * gfortran.dg/implicit_actual.f90: Ditto.
        * gfortran.dg/used_dummy_types_3.f90: Ditto.
        * gfortran.dg/derived_comp_array_ref_6.f90: Ditto.

From-SVN: r131513
15 files changed:
gcc/fortran/ChangeLog
gcc/fortran/interface.c
gcc/fortran/resolve.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/argument_checking_11.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/argument_checking_12.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/argument_checking_3.f90
gcc/testsuite/gfortran.dg/assumed_shape_ranks_1.f90
gcc/testsuite/gfortran.dg/c_assoc_2.f03
gcc/testsuite/gfortran.dg/derived_comp_array_ref_6.f90
gcc/testsuite/gfortran.dg/implicit_actual.f90
gcc/testsuite/gfortran.dg/import2.f90
gcc/testsuite/gfortran.dg/pointer_intent_2.f90
gcc/testsuite/gfortran.dg/used_dummy_types_3.f90
gcc/testsuite/gfortran.dg/used_dummy_types_4.f90
This page took 0.069191 seconds and 5 git commands to generate.