This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/35682] assignment to run-time zero-sized complex section stores a value



------- Comment #5 from fxcoudert at gcc dot gnu dot org  2008-05-14 21:21 -------
Subject: Bug 35682

Author: fxcoudert
Date: Wed May 14 21:20:10 2008
New Revision: 135306

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=135306
Log:
        PR fortran/35682

        * trans-array.c (gfc_conv_ss_startstride): Any negative size is
        the same as zero size.
        (gfc_conv_loop_setup): Fix size calculation.

        * gfortran.dg/bound_4.f90: New test.
        * gfortran.dg/bounds_check_14.f90: New test.

Added:
    trunk/gcc/testsuite/gfortran.dg/bound_4.f90
    trunk/gcc/testsuite/gfortran.dg/bounds_check_14.f90
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/trans-array.c
    trunk/gcc/testsuite/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35682


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]