From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Mark H Weaver Newsgroups: gmane.lisp.guile.bugs Subject: bug#32644: bytevector bug Date: Sun, 14 Oct 2018 03:38:11 -0400 Message-ID: <87y3b1t1uk.fsf@netris.org> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1539502634 12707 195.159.176.226 (14 Oct 2018 07:37:14 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 14 Oct 2018 07:37:14 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) Cc: 32644-done@debbugs.gnu.org To: Stefan Israelsson Tampe Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Sun Oct 14 09:37:10 2018 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gBaxa-0003E7-33 for guile-bugs@m.gmane.org; Sun, 14 Oct 2018 09:37:10 +0200 Original-Received: from localhost ([::1]:47411 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gBaze-0003NI-6Q for guile-bugs@m.gmane.org; Sun, 14 Oct 2018 03:39:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41664) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gBazS-0003LZ-OX for bug-guile@gnu.org; Sun, 14 Oct 2018 03:39:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gBazP-0000YW-3i for bug-guile@gnu.org; Sun, 14 Oct 2018 03:39:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:44487) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gBazO-0000YH-ST for bug-guile@gnu.org; Sun, 14 Oct 2018 03:39:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gBazO-0004QV-Lo for bug-guile@gnu.org; Sun, 14 Oct 2018 03:39:02 -0400 Resent-From: Mark H Weaver Original-Sender: "Debbugs-submit" Resent-To: bug-guile@gnu.org Resent-Date: Sun, 14 Oct 2018 07:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 32644 X-GNU-PR-Package: guile X-GNU-PR-Keywords: Mail-Followup-To: 32644@debbugs.gnu.org, mhw@netris.org, stefan.itampe@gmail.com Original-Received: via spool by 32644-done@debbugs.gnu.org id=D32644.153950271416977 (code D ref 32644); Sun, 14 Oct 2018 07:39:02 +0000 Original-Received: (at 32644-done) by debbugs.gnu.org; 14 Oct 2018 07:38:34 +0000 Original-Received: from localhost ([127.0.0.1]:48745 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gBayv-0004Pl-VF for submit@debbugs.gnu.org; Sun, 14 Oct 2018 03:38:34 -0400 Original-Received: from world.peace.net ([64.112.178.59]:38850) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gBayu-0004PY-LJ for 32644-done@debbugs.gnu.org; Sun, 14 Oct 2018 03:38:32 -0400 Original-Received: from mhw by world.peace.net with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1gBayo-0001mA-Rn; Sun, 14 Oct 2018 03:38:26 -0400 In-Reply-To: (Stefan Israelsson Tampe's message of "Wed, 5 Sep 2018 19:53:02 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Original-Sender: "bug-guile" Xref: news.gmane.org gmane.lisp.guile.bugs:9186 Archived-At: Stefan Israelsson Tampe writes: > The code velow does not compile when the define-inlinable of id is active. If in stead > id defined by define is used it all compiles just fine. The problem was that, in some cases, the type inferrer would call 'ash' with (- 1 (expt 2 64)) as the second argument during compilation. The implementation of 'ash' would raise an exception unless its second argument (the shift count) fits in a C 'long'. This is fixed in commit 011aec7e240ef987931548d90c53e6692c85d01c on the stable-2.2 branch. That commit extends 'ash' and 'round-ash' to gracefully handle several cases where the shift count is too large to fit in a 'long'. Thanks for the report. Mark