From unknown Mon Jun 23 11:28:20 2025 X-Loop: help-debbugs@gnu.org Subject: bug#38611: Guile 2.9.7 regression: "duplicate" record field names Resent-From: =?UTF-8?Q?G=C3=B6ran?= Weinholt Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Sat, 14 Dec 2019 20:53:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 38611 X-GNU-PR-Package: guile X-GNU-PR-Keywords: To: 38611@debbugs.gnu.org X-Debbugs-Original-To: bug-guile@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.15763567398621 (code B ref -1); Sat, 14 Dec 2019 20:53:02 +0000 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 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-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 unknown Mon Jun 23 11:28:20 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: =?UTF-8?Q?G=C3=B6ran?= Weinholt Subject: bug#38611: closed (Re: bug#38611: Guile 2.9.7 regression: "duplicate" record field names) Message-ID: References: <877e1wo0ko.fsf@pobox.com> <874ky3xcdd.fsf@teapot.weinholt.se> X-Gnu-PR-Message: they-closed 38611 X-Gnu-PR-Package: guile Reply-To: 38611@debbugs.gnu.org Date: Sun, 12 Jan 2020 20:58:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1578862682-30147-1" This is a multi-part message in MIME format... ------------=_1578862682-30147-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #38611: Guile 2.9.7 regression: "duplicate" record field names which was filed against the guile package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 38611@debbugs.gnu.org. --=20 38611: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D38611 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1578862682-30147-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit 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 ------------=_1578862682-30147-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit 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 ------------=_1578862682-30147-1--