GNU bug report logs - #42345
3.0.4 says "wrong num' of arg's to 1" vs 2.2.4: "wrong num' of arg's to baz"

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guile; Reported by: Matt Wette <matt.wette@HIDDEN>; merged with #42757; dated Mon, 13 Jul 2020 16:42:01 UTC; Maintainer for guile is bug-guile@HIDDEN.
Merged 42345 42757. Request was from Taylan Kammer <taylan.kammer@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 13 Jul 2020 16:41:14 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jul 13 12:41:14 2020
Received: from localhost ([127.0.0.1]:49083 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1jv1Vy-00066K-1j
	for submit <at> debbugs.gnu.org; Mon, 13 Jul 2020 12:41:14 -0400
Received: from lists.gnu.org ([209.51.188.17]:44528)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <matt.wette@HIDDEN>) id 1jv1Vv-00066C-Ts
 for submit <at> debbugs.gnu.org; Mon, 13 Jul 2020 12:41:13 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:34862)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <matt.wette@HIDDEN>)
 id 1jv1Vv-00049u-M8
 for bug-guile@HIDDEN; Mon, 13 Jul 2020 12:41:11 -0400
Received: from mail-pj1-x1035.google.com ([2607:f8b0:4864:20::1035]:54780)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <matt.wette@HIDDEN>)
 id 1jv1Vu-0005VV-8L
 for bug-guile@HIDDEN; Mon, 13 Jul 2020 12:41:11 -0400
Received: by mail-pj1-x1035.google.com with SMTP id mn17so109950pjb.4
 for <bug-guile@HIDDEN>; Mon, 13 Jul 2020 09:41:09 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=subject:references:to:from:message-id:date:user-agent:mime-version
 :in-reply-to:content-transfer-encoding:content-language;
 bh=1lqLzouoDW46mRHxid/eYcJ5j6cEEIeK6IHjSqLQXps=;
 b=exyqdezhp7d6YH0kOJBFNKevPof7pnKNKR1lwFgnXslC8B065pCtoqtBf1cfRVspDu
 eWzBLaehKMTaBEZyB3SG/KKRRGCZ/P6eAvreRHs/3+ZR9RLIjjAjeaDBKsl+v2pOdEuT
 2qSmbsYtgaI8vFBXMcjxfw1DSLymXUoUlvJya6r/RUP84g3rGok2wXxOkhWFWQSerQ9+
 aqeRsMSZR9agtaXUVM3q5ogA2/Y5YSD6gXZlAVx29rc+uEKCWEoIjZUVBrGXp+l3EvWR
 YKLPi+G5i/gYgzPh7u2FrDJ3T0zibjphHzLbIN45m2NTukG7oVU/tJeMVIBdJGLyHhj/
 1xnQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:subject:references:to:from:message-id:date
 :user-agent:mime-version:in-reply-to:content-transfer-encoding
 :content-language;
 bh=1lqLzouoDW46mRHxid/eYcJ5j6cEEIeK6IHjSqLQXps=;
 b=s8DY5KYdpOTWXPpFEfAnLWCoJGFxMANGv0rdbcY8bnuwRB/Q62QWXrcUn+QRZm+DvQ
 Em0DYlGkKF+BtLB0CU2VecxzmzznXAHiJ39R0D+Qycg1Oap4Be9t8/uixRk5+qMb92Q/
 fuDRgwgw+VdkNX9M52VG8jRk+6BMZ9ri4vi7rSORq1w/Bul9CDSkc0qW8iwWbihxeHyT
 3wpdGv+csil2tpdnU3GlhZlgvOl0VNGrBc7WvFx41fHP/QiXfFIHzQIiT6o1PepXIEQi
 MKrZ0opp8GRcHsJggLbMDsnLtj9rHRMrZf062K2ML9op46O36wX9Ga7cefpdFi7p8GhT
 lGcg==
X-Gm-Message-State: AOAM530H/Dz7H+oju9IzZJ44iaBYSX2p79HRYWftcNcYuBVhjIgtdplF
 F6N9yXcqlztt08nVkF4BQKvt5WBZJ3E=
X-Google-Smtp-Source: ABdhPJzLLxpoIaEUGheDU1mAONSKXrpB6vdBpNXp1pE22NbguNPQnb7DW2aYs/DJBsXzm1NlkZ5bFQ==
X-Received: by 2002:a17:90a:3624:: with SMTP id
 s33mr248029pjb.148.1594658468852; 
 Mon, 13 Jul 2020 09:41:08 -0700 (PDT)
Received: from [192.168.2.183] (64-52-176-132.championbroadband.com.
 [64.52.176.132])
 by smtp.gmail.com with ESMTPSA id j10sm13074651pgh.28.2020.07.13.09.41.07
 for <bug-guile@HIDDEN>
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Mon, 13 Jul 2020 09:41:08 -0700 (PDT)
Subject: 3.0.4 says "wrong num' of arg's to 1" vs 2.2.4: "wrong num' of arg's
 to baz"
References: <b79d72d9-2a1c-770d-35cb-b74a718cfb73@HIDDEN>
To: bug-guile@HIDDEN
From: Matt Wette <matt.wette@HIDDEN>
X-Forwarded-Message-Id: <b79d72d9-2a1c-770d-35cb-b74a718cfb73@HIDDEN>
Message-ID: <104d8455-0da3-8dcf-13da-1a4ecec442a2@HIDDEN>
Date: Mon, 13 Jul 2020 09:41:06 -0700
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101
 Thunderbird/68.10.0
MIME-Version: 1.0
In-Reply-To: <b79d72d9-2a1c-770d-35cb-b74a718cfb73@HIDDEN>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Content-Language: en-US
Received-SPF: pass client-ip=2607:f8b0:4864:20::1035;
 envelope-from=matt.wette@HIDDEN; helo=mail-pj1-x1035.google.com
X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache.
 That's all we know.
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001,
 RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.3 (-)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)

In Guile 3.0.4, the program below results in the error:

/home/mwette/zz.scm:5:2: In procedure bar:
Wrong number of arguments to 1


In Guile 2.2.4, the same program results in the error:

;;; /home/mwette/zz.scm:11:14: warning: wrong number of arguments to `bar'
;;; compiled 
/home/mwette/.cache/guile/ccache/2.2-LE-8-3.A/home/mwette/zz.scm.go


However, once compiled, Guile 3.0.4, will repeat the same error message,
while Guile 2.2.4, will not report any error.

I consider reporting "1" as the name of a procedure a bug.

Here is the program:
(define (foo)

   (define (bar a b)
     (+ a b))

   (define (baz)
     (let* ((a 1)
        (b 2)
        (r (bar a b a)))
       r))

   (baz))

(foo)





Acknowledgement sent to Matt Wette <matt.wette@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-guile@HIDDEN. Full text available.
Report forwarded to bug-guile@HIDDEN:
bug#42345; Package guile. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sun, 23 May 2021 20:00:01 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.