]> git.ipfire.org Git - thirdparty/gcc.git/commit
expr.c (gfc_copy_expr): Don't copy 'op1' and 'op2' for EXPR_SUBSTRING.
authorTobias Schlüter <tobias.schlueter@physik.uni-muenchen.de>
Tue, 8 Feb 2005 13:41:08 +0000 (14:41 +0100)
committerTobias Schlüter <tobi@gcc.gnu.org>
Tue, 8 Feb 2005 13:41:08 +0000 (14:41 +0100)
commiteac33acc64dff662c59c194ebb19d67ca6790272
tree88335b706b5071f059bdce822601ba05626dffcf
parent81122c446d94ea3f12fae0f28d6b436c577633d2
expr.c (gfc_copy_expr): Don't copy 'op1' and 'op2' for EXPR_SUBSTRING.

fortran/
* expr.c (gfc_copy_expr): Don't copy 'op1' and 'op2' for
EXPR_SUBSTRING.
(gfc_is_constant_expr): Check 'ref' to determine if substring
reference is constant.
(gfc_simplify_expr): Simplify 'ref' instead of 'op1' and 'op2'.
(check_init_expr, check_restricted): Check 'ref' instead of 'op1'
and 'op2'.
* module.c (mio_expr): Read / write 'ref' instead of 'op1' and 'op2'.

testsuite/
* gfortran.dg/substr_1.f90: New test.

From-SVN: r94735
gcc/fortran/ChangeLog
gcc/fortran/expr.c
gcc/fortran/module.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/substr_1.f90 [new file with mode: 0644]