[Bug fortran/42783] [4.5 Regression] Bogus Array bounds violation with optional array argument
pault at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Mon Jan 18 17:31:00 GMT 2010
------- Comment #2 from pault at gcc dot gnu dot org 2010-01-18 17:31 -------
Confirmed.
A weird and wonderful feature of this bug is that it disappears for -O2 and
higher :-)
The problem comes about because fsym->backend_decl is being used, which is
incorrect if the argument is missing because this does not correspond to the
declaration for the string. Instead, the function gfc_conv_expr_present should
be used.
A patch is regtesting right now.
Paul
--
pault at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |pault at gcc dot gnu dot org
|dot org |
Status|UNCONFIRMED |ASSIGNED
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2010-01-18 17:31:33
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42783
More information about the Gcc-bugs
mailing list