-
Notifications
You must be signed in to change notification settings - Fork 560
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
-B wrong line number after die #4693
Comments
From Petr.Savicky@cuni.czThe program: #!/usr/bin/perl gives the error message "bb at ./wrong.pl line 2.", Observed in perl-5.00503-10 (some Red Hat) Petr Savicky |
From @schwernOn Thu, Dec 13, 2001 at 01:20:28AM +0100, Petr.Savicky@cuni.cz wrote:
This is a known bug in the optimizer/opcodes. If you run B::Deparse $ perl -MO=Deparse ~/tmp/bug.plx but the original line numbers are forgotten. -- Michael G. Schwern <schwern@pobox.com> http://www.pobox.com/~schwern/ |
From @jhi----- Forwarded message from Kay Röpke <kroepke@dolphin-services.de> ----- Subject: Re: [ID 20011212.009] -B wrong line number after die Hi Jarkko! Below is my reply to Bug Id 20011212.009. Could you please forward it to Thanks, Kay Roepke From: Mail Delivery System <Mailer-Daemon@kundenserver.de> This message was created automatically by mail delivery software. A message that you sent could not be delivered to all of its recipients. perl5-porters@perl.org: ------ This is a copy of the message, including all the headers. ------ Return-path: <kay@dolphin-services.de> On Donnerstag, Dezember 13, 2001, at 01:20 AM, Petr.Savicky@cuni.cz The program: #!/usr/bin/perl gives the error message "bb at ./wrong.pl line 2.", It actually did die in line 2: [kay:~] kroepke% perl -MO=Deparse die 'bb';; The 'if (0) {die "aa";}' is optimized away, thus it isn't visible for I still think the line number should increase...I'm trudging through Observed in perl-5.00503-10 (some Red Hat) Still in my perl@12958 (don't have anything else at hand right now). Regards, Kay ----- End forwarded message ----- -- |
From @schwernOn Thu, Dec 13, 2001 at 08:30:12AM +0100, Petr.Savicky@cuni.cz wrote:
Interesting, it appears to be totally dependent on whether there's any These all die on line 2. #!/usr/bin/perl #!/usr/bin/perl #!/usr/bin/perl But this gives the correct line 3. #!/usr/bin/perl Probably some weird little optimizer bug. -- Michael G. Schwern <schwern@pobox.com> http://www.pobox.com/~schwern/ |
From [Unknown Contact. See original ticket]
kay@dolphin-services.de:
schwern@pobox.com:
I am sorry for oversimplifying the example. #!/usr/bin/perl if it is run with command line parameters 0 1. Petr Savicky |
From [Unknown Contact. See original ticket]Michael G Schwern wrote :
Correct, the tokenizer increments the internal line counter for the op |
Migrated from rt.perl.org#8051 (status was 'open')
Searchable as RT8051$
The text was updated successfully, but these errors were encountered: