This is the mail archive of the gcc@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: Bad line number in a message


Hi,  this is for 4.3.3, which is a bit old, so I'm not filing  a bug.


static inline void * get_resp_ptr(U32 bkade, U32 q_id)
{
    blade_data_t * bd = bfr_blade_data + ssdId;
    bfr_pendcmd_q_t * pcq = bd->bfrpb_ques + q_id;
    blade_resp_t *    res = pcq->bfrpq_resp;

    return (void *)(res + pcq->bfrpq_resp_rdix);
}

I invoked this with a constant "q_id" value that was too large for the
bfrpb_ques array.
The error message indicated "array subscript is above array bounds" for the next
line.  I do hope it is no longer an issue. :)

Cheers - Bruce


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