From debbugs-submit-bounces@debbugs.gnu.org Sat Dec 14 15:52:19 2019 Received: (at submit) by debbugs.gnu.org; 14 Dec 2019 20:52:19 +0000 Received: from localhost ([127.0.0.1]:35803 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1igEOh-0002Ez-B9 for submit@debbugs.gnu.org; Sat, 14 Dec 2019 15:52:19 -0500 Received: from lists.gnu.org ([209.51.188.17]:36666) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1igEOd-0002Eq-QX for submit@debbugs.gnu.org; Sat, 14 Dec 2019 15:52:18 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:46017) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1igEOc-0002UU-Do for bug-guile@gnu.org; Sat, 14 Dec 2019 15:52:15 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1igEOa-0003Tx-8L for bug-guile@gnu.org; Sat, 14 Dec 2019 15:52:14 -0500 Received: from iustitia.weinholt.se ([2a02:28f0:0:a::7dce:e5a8]:33796) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1igEOY-0002sh-4J for bug-guile@gnu.org; Sat, 14 Dec 2019 15:52:12 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=weinholt.se ; s=iustitia2012; h=Content-Transfer-Encoding:Content-Type:MIME-Version: Message-ID:Date:Subject:To:From:Sender:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=oxqlsSmlQ6kCkbCMGUZMZ8lNkgeKK8UtRiRAyNJX/DY=; b=Dgs82Cgqn7B2bcqKzDkJ/1YMYq HmEVpDDSzHqT5/GKdR/WsG3+XRS+RkXvgr6yM22T6OWFoW9gvh0kVibEjmpPv1NcLFTwG01SbsUUW 4w0Xw9dUA5nSKxRDQBrjoZStV23+SXDqEvDIGbmcY7vg16ugyWwMie6DoWIaIjiFKSZVktYwq2bPx OkNbWWw4/KdGRxWypID9XpQjC2MHeT+9f/vLXAhlKGdkQaqjsZw90FVOIK0dCJhIjE3BBsP5I2LMu P86vBDjzbgZT55M7U76TGauVzXfvl5IjhNOpvXwNqeuCwOh0V2DJWDvIezb1CQsFXN/XkU7GNHXt9 mm0/oAwA==; Received: from uucp by iustitia.weinholt.se with local-bsmtp (Exim 4.89) (envelope-from ) id 1ig7Za-0006Ch-Gu; Sat, 14 Dec 2019 14:35:06 +0100 Received: from weinholt by teapot with local (Exim 4.93-RC5) (envelope-from ) id 1ig7Vm-0002II-Vn; Sat, 14 Dec 2019 14:31:10 +0100 From: =?utf-8?Q?G=C3=B6ran?= Weinholt To: bug-guile@gnu.org Subject: Guile 2.9.7 regression: "duplicate" record field names Date: Sat, 14 Dec 2019 14:31:10 +0100 Message-ID: <874ky3xcdd.fsf@teapot.weinholt.se> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a02:28f0:0:a::7dce:e5a8 X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hello schemers, The following program works in Guile 2.2.6 (and other R6RS implementations), but raises an exception in Guile 2.9.7. A field called "name" exists in record type a and record type b, but there is no actual naming conflict as I understand it. --8<---------------cut here---------------start------------->8--- (import (rnrs)) (define-record-type a (fields name)) (define-record-type b (parent a) (fields name)) (let ((x (make-b 'a 'b))) (write (list (a-name x) (b-name x))) (newline)) --8<---------------cut here---------------end--------------->8--- It should print (a b). The backtrace: --8<---------------cut here---------------start------------->8--- Backtrace: In ice-9/boot-9.scm: 1722:10 8 (with-exception-handler _ _ #:unwind? _ # _) In unknown file: 7 (apply-smob/0 #) In ice-9/boot-9.scm: 718:2 6 (call-with-prompt _ _ #) In ice-9/eval.scm: 619:8 5 (_ #(#(#))) In ice-9/boot-9.scm: 2792:4 4 (save-module-excursion _) 4336:12 3 (_) In /tmp/foo.sps: 6:0 2 (_) In ice-9/boot-9.scm: 1090:10 1 (make-record-type b ((immutable name)) _ #:parent _ # _ ?) 1073:12 0 (append-fields _ _) ice-9/boot-9.scm:1073:12: In procedure append-fields: duplicate field name --8<---------------cut here---------------end--------------->8--- Regards, --=20 G=C3=B6ran Weinholt | https://weinholt.se/ Debian developer | 73 de SA6CJK From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 12 15:57:15 2020 Received: (at 38611-done) by debbugs.gnu.org; 12 Jan 2020 20:57:15 +0000 Received: from localhost ([127.0.0.1]:58123 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iqkIM-0007pG-PA for submit@debbugs.gnu.org; Sun, 12 Jan 2020 15:57:15 -0500 Received: from fanzine.igalia.com ([178.60.130.6]:39680) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iqkIK-0007on-HG for 38611-done@debbugs.gnu.org; Sun, 12 Jan 2020 15:57:13 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=igalia.com; s=20170329; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:References:Subject:Cc:To:From; bh=2KZC6k15yWKTyJgqp7iKVPLe+hXbVcpKOo9HCAVw0sw=; b=KywkdVFwOUlNmdXNiQZhCscsa1dz5E3tzPqjnIEuz4Zf+i66h95G2MT0P5Ig84JL+YyOeeGcmfLjMLcskVYLASUUCnWAcSb2vuBJHxGdjmKKKBosMWSYAKeZ9pjq1Z96N/TXMskzGPNgyLwRQ31q+4PSVk9TOeFfOGjYLTNqWdjgc21g+0EsjbD1vQ0ofBiIEW3oSD+ReaUUZjDs/WO16z4LzOeJxOCoMQyby2D73lo0vpytG8y2eUbITwtRdOJYj6Y1oppGx6HVV+ZcjYd3hwwN0rgttRADiuUXmKe0NbCiFIT2Zk3iaUPaK1a4iGd/NmJViDD+vhy1FMCXFjUsWw==; Received: from [88.123.12.110] (helo=sparrow) by fanzine.igalia.com with esmtpsa (Cipher TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim) id 1iqkIE-000056-7h; Sun, 12 Jan 2020 21:57:06 +0100 From: Andy Wingo To: =?utf-8?Q?G=C3=B6ran?= Weinholt Subject: Re: bug#38611: Guile 2.9.7 regression: "duplicate" record field names References: <874ky3xcdd.fsf@teapot.weinholt.se> Date: Sun, 12 Jan 2020 21:56:55 +0100 In-Reply-To: <874ky3xcdd.fsf@teapot.weinholt.se> (=?utf-8?Q?=22G=C3=B6ran?= Weinholt"'s message of "Sat, 14 Dec 2019 14:31:10 +0100") Message-ID: <877e1wo0ko.fsf@pobox.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.7 (/) X-Debbugs-Envelope-To: 38611-done Cc: 38611-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.3 (/) On Sat 14 Dec 2019 14:31, G=C3=B6ran Weinholt writes: > The following program works in Guile 2.2.6 (and other R6RS > implementations), but raises an exception in Guile 2.9.7. A field called > "name" exists in record type a and record type b, but there is no actual > naming conflict as I understand it. > > (import (rnrs)) > > (define-record-type a > (fields name)) > > (define-record-type b > (parent a) > (fields name)) > > (let ((x (make-b 'a 'b))) > (write (list (a-name x) > (b-name x))) > (newline)) Fixed in master. Thanks for the report! Andy From unknown Mon Jun 23 11:27:15 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 10 Feb 2020 12:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator