[cfe-dev] array index error, used as a pointer

Patrick Flannery foster_flannery at yahoo.com
Wed Aug 29 14:54:17 CDT 2007


The following code produces an error: 

struct almost_empty
{
    unsigned a; 
};

int function()
{
    struct almost_empty AE[1]; 
    return AE->a+1; 
}

Patrick 





       
____________________________________________________________________________________
Need a vacation? Get great deals
to amazing places on Yahoo! Travel.
http://travel.yahoo.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.cs.uiuc.edu/pipermail/cfe-dev/attachments/20070829/961e2a65/attachment.html 


More information about the cfe-dev mailing list