From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5801 invoked by alias); 31 Mar 2003 20:19:29 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 5789 invoked from network); 31 Mar 2003 20:19:29 -0000 Received: from unknown (HELO vlsi1.ultra.nyu.edu) (128.122.140.213) by sources.redhat.com with SMTP; 31 Mar 2003 20:19:29 -0000 Received: by vlsi1.ultra.nyu.edu (4.1/1.34) id AA11334; Mon, 31 Mar 03 15:23:24 EST Date: Mon, 31 Mar 2003 21:39:00 -0000 From: kenner@vlsi1.ultra.nyu.edu (Richard Kenner) Message-Id: <10303312023.AA11334@vlsi1.ultra.nyu.edu> To: mark@codesourcery.com Subject: Re: PR 8730 Cc: gcc@gcc.gnu.org X-SW-Source: 2003-03/txt/msg01830.txt.bz2 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.