This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/20030] [4.0 Regression] Broken arguments access
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Feb 2005 17:25:39 -0000
- Subject: [Bug middle-end/20030] [4.0 Regression] Broken arguments access
- References: <20050217162951.20030.grigory.zagorodnev@intel.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-02-17 17:25 -------
This is a bug in fold_indirect_ref.
We get now:
D.485 = (*ca)[0]{lb: 1 sz: 1};
See how the lower bound is 1, that is wrong.
A related C testcase is:
typedef char a[1];
int f(a * b)
{
char a1 = *(char*)(b);
return a1;
}
But for C we don't have lower bounds. In fact in fortran we lower already all the array access so they
start at 0.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2005-02-17 17:25:38
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20030