From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4280 invoked by alias); 17 Oct 2004 23:41:22 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 4258 invoked from network); 17 Oct 2004 23:41:21 -0000 Received: from unknown (HELO mail.codesourcery.com) (65.74.133.9) by sourceware.org with SMTP; 17 Oct 2004 23:41:21 -0000 Received: (qmail 22857 invoked from network); 17 Oct 2004 23:41:21 -0000 Received: from taltos.codesourcery.com (zack@66.92.218.83) by mail.codesourcery.com with DES-CBC3-SHA encrypted SMTP; 17 Oct 2004 23:41:21 -0000 Received: by taltos.codesourcery.com (sSMTP sendmail emulation); Sun, 17 Oct 2004 16:41:20 -0700 To: kenner@vlsi1.ultra.nyu.edu (Richard Kenner) Cc: pinskia@physics.uc.edu, gcc-patches@gcc.gnu.org Subject: Re: [patch] for PR 18040 References: <10410172240.AA01890@vlsi1.ultra.nyu.edu> From: Zack Weinberg Date: Sun, 17 Oct 2004 23:45:00 -0000 In-Reply-To: <10410172240.AA01890@vlsi1.ultra.nyu.edu> (Richard Kenner's message of "Sun, 17 Oct 04 18:40:41 EDT") Message-ID: <87is98syjj.fsf@codesourcery.com> User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2004-10/txt/msg01431.txt.bz2 kenner@vlsi1.ultra.nyu.edu (Richard Kenner) writes: > The way to fix this would be take the address and cast that pointer > to the pointer of the new type. > > That only works when it's addressable. In the case of a variable it is, > but not when it's an intermediate field. I wish you would have given me an example that wasn't susceptible to fixing by taking the address of the aggregate, then. Hmm. Is it possible to construct an example which BOTH requires taking the address of an intermediate field, and wouldn't be cured by making all *_REF expressions implicitly convert to their type? zw