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/29489] [4.1/4.2 only] LBOUND (array) and LBOUND (array, DIM) give different results.



------- Comment #9 from fxcoudert at gcc dot gnu dot org  2006-11-24 22:45 -------
Subject: Bug 29489

Author: fxcoudert
Date: Fri Nov 24 22:45:21 2006
New Revision: 119175

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=119175
Log:
        PR fortran/29391
        PR fortran/29489
        * simplify.c (simplify_bound): Fix the simplification of
        LBOUND/UBOUND intrinsics.
        * trans-intrinsic.c (simplify_bound): Fix the logic, and
        remove an erroneous assert.

        PR fortran/29391
        * trans-intrinsic.c (gfc_conv_intrinsic_bound): Generate correct
        code for LBOUND and UBOUND intrinsics.

        PR fortran/29391
        PR fortran/29489
        * gfortran.dg/bound_2.f90: New test.
        * gfortran.dg/bound_3.f90: New test.

Added:
    branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/bound_2.f90
      - copied, changed from r117691,
trunk/gcc/testsuite/gfortran.dg/bound_2.f90
Modified:
    branches/gcc-4_1-branch/gcc/fortran/ChangeLog
    branches/gcc-4_1-branch/gcc/fortran/simplify.c
    branches/gcc-4_1-branch/gcc/fortran/trans-intrinsic.c
    branches/gcc-4_1-branch/gcc/testsuite/ChangeLog


-- 


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


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