re PR fortran/46484 (Should reject ALLOCATED(non-variable expression ))
authorTobias Burnus <burnus@net-b.de>
Mon, 15 Nov 2010 20:44:26 +0000 (21:44 +0100)
committerTobias Burnus <burnus@gcc.gnu.org>
Mon, 15 Nov 2010 20:44:26 +0000 (21:44 +0100)
commit11746b92d8023be7a074b788ab2e42fa6ad2f492
treed5417534167d8746e98a8d64124cda21b00d2c67
parented2a97eb0d4549150716c6017a8678905e884b42
re PR fortran/46484 (Should reject ALLOCATED(non-variable expression ))

2010-11-15  Tobias Burnus  <burnus@net.b.de>

        PR fortran/46484
        * check.c (variable_check): Don't treat functions calls as
        * variables;
        optionally accept function themselves.
        (gfc_check_all_any, gfc_check_loc, gfc_check_move_alloc,
        gfc_check_null, gfc_check_present, gfc_check_cpu_time,
        gfc_check_date_and_time, gfc_check_mvbits, gfc_check_random_number,
        gfc_check_random_seed, gfc_check_system_clock,
        gfc_check_dtime_etime, gfc_check_dtime_etime_sub,
        gfc_check_itime_idate,gfc_check_ltime_gmtime): Update call.

2010-11-15  Tobias Burnus  <burnus@net.b.de>

        PR fortran/46484
        * gfortran.dg/allocatable_scalar_11.f90: New.
        * gfortran.dg/allocatable_scalar_5.f90: Make test case standard
        * conform.

From-SVN: r166769
gcc/fortran/ChangeLog
gcc/fortran/check.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/allocatable_scalar_11.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/allocatable_scalar_5.f90