#1253 Fix for pr3582052

closed-accepted
nobody
5
2012-11-03
2012-11-01
No

The code that calculated the canonical index for a multi-dimensional array access did not correctly estimate the index expression width in the case that the first index value was a constant zero. This patch fixes the problem, and, in passing, also makes the expression calculation more efficient if any of the indices are constant zeroes.

Also attached is an extended version of the regression test attached to the bug report. This test doesn't need any special compiler flags or a gold file.

Discussion

  • Martin Whitaker

    Martin Whitaker - 2012-11-01

    Regression test for test suite

     
  • Stephen Williams

    • status: open --> closed-accepted
     
  • Stephen Williams

    Applied to git master.

     

Log in to post a comment.