develooper Front page | perl.perl5.porters | Postings from August 2018

[perl #132683] "Use of uninitialized value" in warn() with constantfolding and overloaded numbers

From:
Tony Cook via RT
Date:
August 30, 2018 05:34
Subject:
[perl #132683] "Use of uninitialized value" in warn() with constantfolding and overloaded numbers
Message ID:
rt-4.0.24-32384-1535607268-1389.132683-15-0@perl.org
On Tue, 20 Feb 2018 21:24:56 -0800, tonyc wrote:
> On Thu, 04 Jan 2018 23:09:07 -0800, trizen@protonmail.com wrote:
> > Hi,
> > 
> > There seems to be a minor issue: when warn() is used in an overloaded
> > built-in function which is subject to constant folding and the
> > argument is an overloaded number (with overload::constant), it
> > displays "Use of uninitialized value in warn", although no
> > uninitialized value is passed to warn().
> 
> Try the attached.

Applied as 2460a4968c375f226973ba7e7e5fe6cf5a997ddb.

Tony

---
via perlbug:  queue: perl5 status: open
https://rt.perl.org/Ticket/Display.html?id=132683



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About