Front page | perl.perl5.porters |
Postings from August 2010
[perl #77452] B::Deparse puts 'no overloading' in the wrong place
Thread Next
From:
Nicholas Clark
Date:
August 26, 2010 06:52
Subject:
[perl #77452] B::Deparse puts 'no overloading' in the wrong place
Message ID:
rt-3.6.HEAD-5116-1282830695-579.77452-75-0@perl.org
# New Ticket Created by Nicholas Clark
# Please include the string: [perl #77452]
# in the subject line of all future correspondence about this issue.
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=77452 >
This is a bug report for perl from nick@ccl4.org,
generated with the help of perlbug 1.39 running under perl 5.13.3.
-----------------------------------------------------------------
[Please describe your issue here]
B::Deparse is getting the positioning of no overloading wrong:
$ ./perl -Ilib -MO=Deparse -e 'print; { no overloading; $a + $b}; print'
print $_;
no overloading;
{
$a + $b;
}
print $_;
-e syntax OK
$ ./perl -Ilib -MO=Deparse -e 'print do { no overloading; $a + $b}; print'
no overloading;
print do {
$a + $b
};
print $_;
-e syntax OK
In both cases, it should be inside the block.
I don't know if this bug just applies to the overloading pragma.
Nicholas Clark
[Please do not change anything below this line]
-----------------------------------------------------------------
---
Flags:
category=library
severity=low
module=B::Deparse
---
Site configuration information for perl 5.13.3:
Configured by nick at Thu Aug 26 11:15:57 BST 2010.
Summary of my perl5 (revision 5 version 13 subversion 3) configuration:
Derived from: 63cf24924effea6eabe5e1216348eea653365fda
Platform:
osname=linux, osvers=2.6.18.8-xenu, archname=x86_64-linux-thread-multi
uname='linux eris 2.6.18.8-xenu #1 smp sat oct 3 10:27:42 bst 2009 x86_64 gnulinux '
config_args='-Dusedevel=y -Dcc=ccache gcc -Dld=gcc -Ubincompat5005 -Uinstallusrbinperl -Dcf_email=nick@ccl4.org -Dperladmin=nick@ccl4.org -Dinc_version_list= -Dinc_version_list_init=0 -Doptimize=-g -Dusethreads -Uuselongdouble -Uuse64bitall -Dusemymalloc -Duseperlio -Dprefix=~/Sandpit/snap5.9.x-v5.13.3-277-g63cf249 -Uusevendorprefix -Uvendorprefix=~/Sandpit/snap5.9.x-v5.13.3-277-g63cf249 -Dinstallman1dir=none -Dinstallman3dir=none -Uuserelocatableinc -Umad -Accccflags=-DPERL_GLOBAL_STRUCT -de'
hint=recommended, useposix=true, d_sigaction=define
useithreads=define, usemultiplicity=define
useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
use64bitint=define, use64bitall=undef, uselongdouble=undef
usemymalloc=y, bincompat5005=undef
Compiler:
cc='ccache gcc', 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.2', 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='double', nvsize=8, Off_t='off_t', lseeksize=8
alignbytes=8, prototype=define
Linker and Libraries:
ld='gcc', ldflags =' -fstack-protector -L/usr/local/lib'
libpth=/usr/local/lib /lib /usr/lib /lib64 /usr/lib64
libs=-lnsl -ldb -ldl -lm -lcrypt -lutil -lpthread -lc
perllibs=-lnsl -ldl -lm -lcrypt -lutil -lpthread -lc
libc=/lib/libc-2.7.so, so=so, useshrplib=false, libperl=libperl.a
gnulibc_version='2.7'
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.13.3:
lib
/home/nick/Sandpit/snap5.9.x-v5.13.3-277-g63cf249/lib/perl5/site_perl/5.13.3/x86_64-linux-thread-multi
/home/nick/Sandpit/snap5.9.x-v5.13.3-277-g63cf249/lib/perl5/site_perl/5.13.3
/home/nick/Sandpit/snap5.9.x-v5.13.3-277-g63cf249/lib/perl5/5.13.3/x86_64-linux-thread-multi
/home/nick/Sandpit/snap5.9.x-v5.13.3-277-g63cf249/lib/perl5/5.13.3
.
---
Environment for perl 5.13.3:
HOME=/home/nick
LANG (unset)
LANGUAGE (unset)
LD_LIBRARY_PATH (unset)
LOGDIR (unset)
PATH=/home/nick/bin:/usr/local/bin:/usr/bin:/bin:/usr/games:/usr/local/sbin:/sbin:/usr/sbin
PERL_BADLANG (unset)
SHELL=/bin/bash
Thread Next
-
[perl #77452] B::Deparse puts 'no overloading' in the wrong place
by Nicholas Clark