http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54136

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-07-31 
09:06:55 UTC ---
> double cam_xyz[4][3];

> cam_xyz[0][j] 

Yes you are going past the array bounds of cam_xyz[0] .Rewrite the loop like:
      for (j0=0; j0 < 4; j0++)
      for (j=0; j < 3; j++)

    cam_xyz[j0][j] = table[i].trans[j0*3+j] / 10000.0;

Instead of change cam_xyz to be array of size 12.

Reply via email to