public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* BUG: Bad line number in a message
@ 2014-03-12 22:19 Bruce Korb
  0 siblings, 0 replies; only message in thread
From: Bruce Korb @ 2014-03-12 22:19 UTC (permalink / raw)
  To: GCC List

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-03-12 22:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-12 22:19 BUG: Bad line number in a message Bruce Korb

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).