From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16232 invoked by alias); 7 Nov 2002 20:14:19 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 16223 invoked from network); 7 Nov 2002 20:14:17 -0000 Received: from unknown (HELO zenia.red-bean.com) (66.244.67.22) by sources.redhat.com with SMTP; 7 Nov 2002 20:14:17 -0000 Received: (from jimb@localhost) by zenia.red-bean.com (8.11.6/8.11.6) id gA7JxID30689; Thu, 7 Nov 2002 14:59:18 -0500 To: "Theodore A. Roth" Cc: gdb-patches@sources.redhat.com Subject: Re: [RFC] broken build using bison-1.75 References: From: Jim Blandy Date: Thu, 07 Nov 2002 12:14:00 -0000 In-Reply-To: Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2.90 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2002-11/txt/msg00193.txt.bz2 Possibly confusing typo in my message: Jim Blandy writes: > If you write a rule without a final action, like the start rule from > p-exp.y: > > start : { current_type = NULL; > search_field = 0; > } > normal_start; > > then Bison inserts a default final action, { $$ = $1; }. However, in > this example, that's a bad idea, since $1 refers to the mid-rule > action `{ current_type = ... }', and that has to type. That's why the I meant to say: has no type > error message says: > > /home/js/MIPS/toolchain/mips-linux-gdb/gdb/../../gdb+dejagnu-5.3-branch-20021031/gdb/c-exp.y:248.5-251.3: type clash (`voidval' `') on default action > > I think that's complaining that there's a clash between the type of > `start', which is `voidval', and the type of the mid-rule action, > which is being printed as `'.