-----------------------------------------------------------------
[Please enter your report here]
It seems that bleadperl is ignoring "no warnings" in situations where 5.6.1
headed it. Here's 5.6.1:
$ perl -we 'no warnings; use constant foo => 1; *{"foo"} = sub () { "bar" };'
And bleadperl:
$ ./perl -Ilib -we 'no warnings; use constant foo => 1; *{"foo"} = sub () { "bar" };'
Constant subroutine main::foo redefined at -e line 1.
[Please do not change anything below this line]
-----------------------------------------------------------------
---
Flags:
category=core
severity=medium
---
Site configuration information for perl v5.7.3:
Configured by sam at Sun May 19 17:25:55 EDT 2002.
Summary of my perl5 (revision 5.0 version 7 subversion 3 patch 16697) configuration:
Platform:
osname=linux, osvers=2.2.18, archname=i686-linux
uname='linux airtrout 2.2.18 #4 fri dec 29 13:08:17 est 2000 i686 unknown '
config_args='-d -D optimize=-g -Dusedevel'
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef
useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=undef use64bitall=undef uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='cc', ccflags ='-DDEBUGGING -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm',
optimize='-g',
cppflags='-DDEBUGGING -fno-strict-aliasing -I/usr/local/include -I/usr/include/gdbm'
ccversion='', gccversion='egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
alignbytes=4, prototype=define
Linker and Libraries:
ld='cc', ldflags =' -L/usr/local/lib'
libpth=/usr/local/lib /lib /usr/lib
libs=-lnsl -lndbm -lgdbm -ldb -ldl -lm -lc -lposix -lcrypt -lutil
perllibs=-lnsl -ldl -lm -lc -lposix -lcrypt -lutil
libc=/lib/libc-2.1.3.so, so=so, useshrplib=false, libperl=libperl.a
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic'
cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'
Locally applied patches:
DEVEL16693
---
@INC for perl v5.7.3:
lib
/usr/local/lib/perl5/5.7.3/i686-linux
/usr/local/lib/perl5/5.7.3
/usr/local/lib/perl5/site_perl/5.7.3/i686-linux
/usr/local/lib/perl5/site_perl/5.7.3
/usr/local/lib/perl5/site_perl
.
---
Environment for perl v5.7.3:
HOME=/home/sam
LANG=en_US
LANGUAGE (unset)
LD_LIBRARY_PATH (unset)
LOGDIR (unset)
PATH=/usr/bin:/bin:/usr/local/bin:/sbin:/usr/sbin:/usr/local/sbin:/usr/local/bin:/usr/local/mysql/bin/:/usr/local/apache/bin:/usr/X11R6/bin:/home/sam/bin
PERL_BADLANG (unset)
SHELL=/bin/bash
I think it's intended behaviour.
See change 6257 and sv.c around line 3794 :
/* Redefining a sub - warning is mandatory if
it was a const and its value changed. */
> I think it's intended behaviour.
> See change 6257 and sv.c around line 3794 :
> /* Redefining a sub - warning is mandatory if
> it was a const and its value changed. */
Can you think of any reason for the change? It seems to me it fits pretty
well in the 'redefine' category.
-sam
It is worse than a normal re-define because previous value will
have been inlined to uses seen at compile time "so far", but now
you have redefined it new ones will use new value.
--
Nick Ing-Simmons
http://www.ni-s.u-net.com/