GNU bug report logs - #74348
Wrongly issued warning regarding format arguments for "~65c"

Previous Next

Package: guile;

Reported by: Tomas Volf <~@wolfsden.cz>

Date: Wed, 13 Nov 2024 18:43:01 UTC

Severity: normal

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Tomas Volf <~@wolfsden.cz>
To: bug-guile <at> gnu.org
Subject: Wrongly issued warning regarding format arguments for "~65c"
Date: Wed, 13 Nov 2024 19:41:47 +0100
Hello,

when I try to run the following (taken from the documentation):

--8<---------------cut here---------------start------------->8---
scheme@(guile-user)> ,use (ice-9 format)
scheme@(guile-user)> (format #f "~65c")
;;; <stdin>:29:0: warning: "~65c": wrong number of `format' arguments: expected 1, got 0
$7 = "A"
--8<---------------cut here---------------end--------------->8---

So, it does indeed return "A", however is also prints a warning.  The
warning should not be printed.

Quoting Matt Wette from the guile-user mailing list:

> This looks like a bug in the compiler to me.
> For example, check the `format-analysis' procedure in
> language/tree-il/analyze.scm

So I am reporting it to the bug tracker.

Have a nice day,
Tomas

-- 
There are only two hard things in Computer Science:
cache invalidation, naming things and off-by-one errors.




This bug report was last modified 216 days ago.

Previous Next


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