This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: PR 8730
- From: kenner at vlsi1 dot ultra dot nyu dot edu (Richard Kenner)
- To: mark at codesourcery dot com
- Cc: gcc at gcc dot gnu dot org
- Date: Mon, 31 Mar 03 15:23:24 EST
- Subject: Re: PR 8730
I remember looking at this a while ago and the problem has nothing to
do with expression folding, but rather with context in the C front end,
which I don't know well enough to fix.
The test case in question is
void foo() {
void *bar (int i, int A[1][i]) { return A[0]; };
};
The problem is that the size of A is being computed in the context
of function foo. It needs to be computed in the context of function bar.
Whoever knows the C front end well will have to look at this.