This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: PR fortran/18899: ubound() failing for assumed-shape arrays
- From: Richard Sandiford <richard at codesourcery dot com>
- To: Steven Bosscher <stevenb at suse dot de>
- Cc: fortran at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: Mon, 12 Sep 2005 11:55:17 +0100
- Subject: Re: PR fortran/18899: ubound() failing for assumed-shape arrays
- References: <87zmqiehza.fsf@talisman.home><200509121208.38635.stevenb@suse.de>
Steven Bosscher <stevenb@suse.de> writes:
> This entire test case optimizes away to nothing for me with Richard
> Guenther's array aliasing patch. You should probably add an explicit
> interface for test and not make test CONTAINED.
Is that a bad thing? We're only trying to test what the frontend
produces, and if the frontend produces something that the optimisers
realise is a no-op, that's fine.
If any of the ubound()s didn't evaluate to the expected values,
we'd have a call to abort(), and no optimiser has the right to
get rid of that ;)
Richard