You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
use Data::Dumper;
my$test;
$test = sub {
my@arr;
print Dumper \@arr;
returndefined$test; # disables optimization?
};
$test->();
Compiled with perlcc --Wl="vcruntime.lib" test.pl.
Linux and Mingw-w64 versions of perlcc produce binary that prints $VAR1 = []; as interpreter does.
But if binary compiled with Visual Studio it prints $VAR1 = \undef; and causes null pointer exception on array operations.
The text was updated successfully, but these errors were encountered:
How to reproduce:
Compiled with
perlcc --Wl="vcruntime.lib" test.pl
.Linux and Mingw-w64 versions of perlcc produce binary that prints
$VAR1 = [];
as interpreter does.But if binary compiled with Visual Studio it prints
$VAR1 = \undef;
and causes null pointer exception on array operations.The text was updated successfully, but these errors were encountered: