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: 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.


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