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/34476] Parameters: Bogus out of bounds error in array constructor



------- Comment #5 from pault at gcc dot gnu dot org  2008-01-08 15:15 -------
Subject: Bug 34476

Author: pault
Date: Tue Jan  8 15:14:33 2008
New Revision: 131396

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=131396
Log:
2008-01-08  Paul Thomas  <pault@gcc.gnu.org>

        PR fortran/34476
        * expr.c (find_array_element): Check that the array bounds are
        constant before using them.  Use lower, as well as upper bound.
        (check_restricted): Allow implied index variable.

2008-01-08  Paul Thomas  <pault@gcc.gnu.org>

        PR fortran/34476
        * gfortran.dg/parameter_array_init_3.f90: New test.


Added:
    trunk/gcc/testsuite/gfortran.dg/parameter_array_init_3.f90
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/expr.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


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