From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25533 invoked by alias); 29 Sep 2002 19:58:43 -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 25524 invoked from network); 29 Sep 2002 19:58:42 -0000 Received: from unknown (HELO crack.them.org) (65.125.64.184) by sources.redhat.com with SMTP; 29 Sep 2002 19:58:42 -0000 Received: from nevyn.them.org ([66.93.61.169] ident=mail) by crack.them.org with asmtp (Exim 3.12 #1 (Debian)) id 17vl8h-0007X7-00; Sun, 29 Sep 2002 15:58:07 -0500 Received: from drow by nevyn.them.org with local (Exim 3.35 #1 (Debian)) id 17vkD7-0001cm-00; Sun, 29 Sep 2002 15:58:37 -0400 Date: Sun, 29 Sep 2002 13:06:00 -0000 From: Daniel Jacobowitz To: Bruce Korb Cc: Gabriel Dos Reis , Robert Dewar , zack@codesourcery.com, gcc@gcc.gnu.org Subject: Re: module level flags Message-ID: <20020929195837.GA6173@nevyn.them.org> Mail-Followup-To: Bruce Korb , Gabriel Dos Reis , Robert Dewar , zack@codesourcery.com, gcc@gcc.gnu.org References: <20020929094132.3E262F2D68@nile.gnat.com> <3D972FFC.641F4F46@pacbell.net> <3D9736C8.1C4ACF76@pacbell.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3D9736C8.1C4ACF76@pacbell.net> User-Agent: Mutt/1.5.1i X-SW-Source: 2002-09/txt/msg01209.txt.bz2 On Sun, Sep 29, 2002 at 10:22:16AM -0700, Bruce Korb wrote: > Gabriel Dos Reis wrote: > > | If the standard says otherwise, then this construct: > > | > > | (mumble*)&stumble > > | > > | where 'stumble' is not of type 'mumble' must be deemed a > > | hard error. > > > > Not necessarily. The C abstract machine has a notion of "effective > > type" and "compatible type". > > By golly, YYSTYPE darn well better be compatible with > arbitrary pointers or there are real problems. What is a YYSTYPE? A union pointer? A char *? If it's a char *, as the language suggests it should be, then you're OK. If it's a union* you should be accessing the appropriate union member, not casting. -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer