bug#80275: imported module (rnrs conditions) overrides core binding `&error'

Tomas Volf <[email protected]> Wed, 28 Jan 2026 00:27:37 +0100
Newsgroups gmane.lisp.guile.bugs
Message-ID <[email protected]>
Hello,

the following program

--8<---------------cut here---------------start------------->8---
(define-module (foo)
  #:use-module (rnrs conditions))

(define-condition-type &foo &error
  make-foo foo?)
--8<---------------cut here---------------end--------------->8---

prints the following warning

--8<---------------cut here---------------start------------->8---
$ guix shell guile-next -- guile --no-auto-compile -s /tmp/foo.scm
WARNING: (foo): imported module (rnrs conditions) overrides core binding `&error'
--8<---------------cut here---------------end--------------->8---

Is it possible we are missing #:replace somewhere?

Tomas

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