Front page | perl.perl5.porters |
Postings from August 2009
[perl #68870] B::Deparse: misplaced label
From:
Frank Wiegand
Date:
August 31, 2009 09:48
Subject:
[perl #68870] B::Deparse: misplaced label
Message ID:
rt-3.6.HEAD-2466-1251709170-156.68870-75-0@perl.org
# New Ticket Created by Frank Wiegand
# Please include the string: [perl #68870]
# in the subject line of all future correspondence about this issue.
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=68870 >
This is a bug report for perl from frank.wiegand@gmail.com,
generated with the help of perlbug 1.39 running under perl 5.11.0.
-----------------------------------------------------------------
Hi,
B::Deparse misplaces labels under some circumstances:
% bleadperl -MO=Deparse -E 'foo:{ print 1 }'
foo: BEGIN {
$^H{'feature_say'} = q(1);
$^H{'feature_state'} = q(1);
$^H{'feature_switch'} = q(1);
}
{
print 1;
}
-e syntax OK
% bleadperl -MO=Deparse -E 'foo:{ print 1 }' | bleadperl
-e syntax OK
syntax error at - line 1, near "foo: BEGIN "
syntax error at - line 5, near "}"
Execution of - aborted due to compilation errors.
As you can see, the output from Deparse is wrong. Using -e, it's fine:
% bleadperl -MO=Deparse -e 'foo:{ print 1 }'
foo: {
print 1;
}
-e syntax OK
Thanks, Frank
-----------------------------------------------------------------
---
Flags:
category=core
severity=medium
---
Site configuration information for perl 5.11.0:
Configured by cpan at Thu Aug 27 20:11:26 CEST 2009.
Summary of my perl5 (revision 5 version 11 subversion 0) configuration:
Commit id: cdbde1c3701b0cb92ce2e5d6926444ea6ea6a710
Platform:
osname=linux, osvers=2.6.30-1-amd64, archname=x86_64-linux-thread-multi-ld
uname='linux hal2 2.6.30-1-amd64 #1 smp mon aug 3 12:28:22 utc 2009 x86_64 gnulinux '
config_args='-de -Dusethreads -Dusedevel -Duselongdouble -Uusemymalloc -DPERL_POLLUTE_MALLOC -DDEBUGGING=both -Doptimize=-g -Dprefix=/opt/perl/perl-1251387670/ -Dmad -DPERL_EMERGENCY_SBRK'
hint=recommended, useposix=true, d_sigaction=define
useithreads=define, usemultiplicity=define
useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
use64bitint=define, use64bitall=define, uselongdouble=define
usemymalloc=n, bincompat5005=undef
Compiler:
cc='cc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -DDEBUGGING -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
optimize='-g',
cppflags='-D_REENTRANT -D_GNU_SOURCE -DDEBUGGING -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include'
ccversion='', gccversion='4.3.4', gccosandvers=''
intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
ivtype='long', ivsize=8, nvtype='long double', nvsize=16, Off_t='off_t', lseeksize=8
alignbytes=16, prototype=define
Linker and Libraries:
ld='cc', ldflags =' -fstack-protector -L/usr/local/lib'
libpth=/usr/local/lib /lib /usr/lib /lib64 /usr/lib64
libs=-lnsl -ldl -lm -lcrypt -lutil -lpthread -lc
perllibs=-lnsl -ldl -lm -lcrypt -lutil -lpthread -lc
libc=/lib/libc-2.9.so, so=so, useshrplib=false, libperl=libperl.a
gnulibc_version='2.9'
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
cccdlflags='-fPIC', lddlflags='-shared -g -L/usr/local/lib -fstack-protector'
Locally applied patches:
---
@INC for perl 5.11.0:
/opt/perl/perl-1251387670/lib/site_perl/5.11.0/x86_64-linux-thread-multi-ld
/opt/perl/perl-1251387670/lib/site_perl/5.11.0
/opt/perl/perl-1251387670/lib/5.11.0/x86_64-linux-thread-multi-ld
/opt/perl/perl-1251387670/lib/5.11.0
.
---
Environment for perl 5.11.0:
HOME=/home/fw
LANG=de_DE.UTF-8
LANGUAGE=
LD_LIBRARY_PATH (unset)
LOGDIR (unset)
PATH=/sbin:/usr/sbin:/home/fw/bin:/home/fw/bin:/usr/local/bin:/usr/bin:/bin:/usr/games
PERL_AUTOINSTALL=--defaultdeps
PERL_BADLANG (unset)
PERL_EXTUTILS_AUTOINSTALL=--defaultdeps
PERL_MM_USE_DEFAULT=1
SHELL=/bin/zsh
-
[perl #68870] B::Deparse: misplaced label
by Frank Wiegand