Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions sv.c
Original file line number Diff line number Diff line change
Expand Up @@ -17532,6 +17532,8 @@ S_find_uninit_var(pTHX_ const OP *const obase, const SV *const uninit_sv,
case OP_SYSOPEN:
case OP_SYSSEEK:
case OP_SPLICE: /* scalar splice(@x, $i, 0) ==> undef */
case OP_REFADDR:
case OP_REFTYPE:
match = 1;
goto do_op;

Expand Down
9 changes: 9 additions & 0 deletions t/lib/warnings/9uninit
Original file line number Diff line number Diff line change
Expand Up @@ -2303,3 +2303,12 @@ Use of uninitialized value shift(@ARGV) in lc at - line 26.
Use of uninitialized value shift() in lc at - line 27.
Use of uninitialized value pop(@ARGV) in lc at - line 28.
Use of uninitialized value pop() in lc at - line 29.
########
# GH #19273
use warnings 'uninitialized';
my $x = 'fine';
$_ = builtin::refaddr($x) == 1;
$_ = builtin::reftype($x) eq '';
EXPECT
Use of uninitialized value in numeric eq (==) at - line 4.
Use of uninitialized value in string eq at - line 5.
Loading