GNU bug report logs - #46540
28.0.50; Native-comp optimization bug

Previous Next

Package: emacs;

Reported by: Yu Han Quek <qythium <at> gmail.com>

Date: Mon, 15 Feb 2021 19:20:02 UTC

Severity: normal

Found in version 28.0.50

Done: Andrea Corallo <akrl <at> sdf.org>

Bug is archived. No further changes may be made.

Full log


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

From: Andrea Corallo <akrl <at> sdf.org>
To: Yu Han Quek <qythium <at> gmail.com>
Cc: 46540 <at> debbugs.gnu.org
Subject: Re: bug#46540: 28.0.50; Native-comp optimization bug
Date: Mon, 15 Feb 2021 20:08:54 +0000
Yu Han Quek <qythium <at> gmail.com> writes:

> The following function gives an incorrect result when compiled natively
> with comp-speed >= 2.
>
> ;; -*- lexical-binding: t; -*-
>
> (defun native-comp-bug (body)
>   (let ((x (car body))
>         (y (cadr body)))
>     (unless (and
>              (natnump x)
>              (natnump y)
>              (<= x y))
>       (error ""))
>     x))

Cool thanks for the reduced reproducer!

I'll have a in the coming days.

  Andrea




This bug report was last modified 4 years and 93 days ago.

Previous Next


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