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]

Re: fold: &a[i1] + c * i2 -> &a[i1 + i2] messing up types



On Feb 9, 2005, at 7:56 AM, Richard Guenther wrote:


Hi!

I get an ICE with the following C++ testcase:

void bar(unsigned int i)
{
        int a[4];
        char *p = (char*)&a[1] + 4*i;
}

I filed PR 19854 for this regression so we don't lose track of the patch and/or testcase.

-- Pinski


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