This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug middle-end/20030] [4.0 Regression] Broken arguments access


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]