This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
BUG: Bad line number in a message
- From: Bruce Korb <bruce dot korb at gmail dot com>
- To: GCC List <gcc at gcc dot gnu dot org>
- Date: Wed, 12 Mar 2014 15:19:05 -0700
- Subject: BUG: Bad line number in a message
- Authentication-results: sourceware.org; auth=none
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