[Bug middle-end/20030] [4.0 Regression] Broken arguments access
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Thu Feb 17 21:41:00 GMT 2005
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-02-17 17:40 -------
I have a fix which I am testing.
Yes this was a bug in fold_indirect_ref and not in the fortran front-end (it could also effect Ada too but I
have no test case for Ada).
Basically what happens is that the fortran front-end creates an array which has a lower bound of 1 and
then casts the reference to one of those to the pointer type of the type (of what is in the array) and the
dereferences it. fold_indirect_ref would get the lower bound wrong which causes us to create wrong
code.
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |pinskia at gcc dot gnu dot
|dot org |org
Status|NEW |ASSIGNED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20030
More information about the Gcc-bugs
mailing list