[Bug fortran/18899] [gfortran] ubound wrongly calculated for passed array

cvs-commit at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Tue Sep 13 08:07:00 GMT 2005


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-09-13 08:07 -------
Subject: Bug 18899

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	rsandifo@gcc.gnu.org	2005-09-13 08:07:16

Modified files:
	gcc/testsuite  : ChangeLog 
	gcc/fortran    : ChangeLog trans-array.c trans-intrinsic.c 
Added files:
	gcc/testsuite/gfortran.dg: shape_2.f90 

Log message:
	PR fortran/18899
	* trans-intrinsic.c (gfc_conv_intrinsic_bound): Move initialization
	of argse.  Remove now-redundant want_pointer assignment.
	* trans-array.c (gfc_conv_expr_descriptor): When not assigning to
	a pointer, keep the original bounds of a full array reference.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.6053&r2=1.6054
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.dg/shape_2.f90.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/ChangeLog.diff?cvsroot=gcc&r1=1.551&r2=1.552
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/trans-array.c.diff?cvsroot=gcc&r1=1.61&r2=1.62
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/trans-intrinsic.c.diff?cvsroot=gcc&r1=1.53&r2=1.54



-- 


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



More information about the Gcc-bugs mailing list