nayakgi / perl-compiler

Automatically exported from code.google.com/p/perl-compiler
Other
0 stars 0 forks source link

empty functions, like signal handlers not stored #271

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

> perlcc -r -e 'use warnings; BEGIN { $SIG{'__WARN__'} = sub { }; } my %hash = 
(1..3); print qq{ok\n} if scalar keys %hash == 2;'
Not a subroutine reference at -e line 1.

What is the expected output? What do you see instead?

> perl -e 'use warnings; BEGIN { $SIG{'__WARN__'} = sub { }; } my %hash = 
(1..3); print qq{ok\n} if scalar keys %hash == 2;'
ok

Please use labels and text to provide additional information.

Original issue reported on code.google.com by nicolas....@gmail.com on 23 Jan 2014 at 9:35

GoogleCodeExporter commented 9 years ago
Yes, this SIG handler problem is a serious regression and related to empty_cv 
handling.
It has nothing to do with warnings though.

Original comment by reini.urban on 24 Jan 2014 at 6:17

GoogleCodeExporter commented 9 years ago
needed.

Original comment by todd.e.rinaldo on 31 Jan 2014 at 12:41

GoogleCodeExporter commented 9 years ago

Original comment by reini.urban on 31 Jan 2014 at 6:27

GoogleCodeExporter commented 9 years ago

Original comment by reini.urban on 31 Jan 2014 at 6:28

GoogleCodeExporter commented 9 years ago

Original comment by reini.urban on 31 Jan 2014 at 6:29

GoogleCodeExporter commented 9 years ago
verified

Original comment by nicolas....@gmail.com on 6 Feb 2014 at 9:50