[gfortran] Fix PR 19479: Simplification of the {L|U}BOUND intrinsics
Tobias Schlüter
tobias.schlueter@physik.uni-muenchen.de
Sun Feb 27 13:51:00 GMT 2005
This patch fixes the simplification of the UBOUND and LBOUND intrinsics.
Previously they would get confused if there were component references in the
reference chain. The attached testcase segfaults before the patch and passes
afterwards.
Bubblestrapped and tested on i686-pc-linux. This patch is ported from g95,
but I simplified the logic and chose non-obfuscated variable names. Ok for
mainline and the branch?
- Tobi
2005-02-27 Tobias Schl"uter <tobias.schlueter@physik.uni-muenchen.de>
(port from g95)
PR fortran/19479
* simplify.c (gfc_simplify_bound): Overhaul.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: pr19479.diff
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20050227/17a18386/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: bound_1.f90
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20050227/17a18386/attachment.f90>
More information about the Fortran
mailing list