This is the mail archive of the
mailing list for the GCC project.
Re: [patch] for PR 19333
> On Tue, Jan 11, 2005 at 09:57:44PM +0100, Zdenek Dvorak wrote:
> > well, in the testcase it is basically cast to (short ) and then
> > worked with. I agree that it does not make much sense to me, but
> > apparently someone writes code like this and expects it to work.
> I'm convinced that one of two things should have happened.
> Either "short a" should get
> error: elements of array ' have incomplete type
> or we shouldn't have removed the cast to (short ). There's
> absolutely nothing sensible we can do in the tree optimizers with
> a dereferenced incomplete type.
well, we never work with dereferenced incomplete types. See the analysis
in the previous mails.