Forwarded message:
> This is a bug report for perl from hirmer@ira.uka.de,
> generated with the help of perlbug 1.28 running under perl v5.6.0.
>
> #!/sw/solaris/2.7/bin/perl
> #
> #bash# /sw/solaris/2.7/bin/perl --version
> #This is perl, v5.6.0 built for sun4-solaris
>
> # use strict [Perl 5.6.0] does not complain about variables out of scope
>
> use strict;
>
> my $c;
>
> bar();
>
> exit;
>
>
> sub bar () {
> my $d = $main::c;
>
> # Warning like: "'$main::c' out of scope" expected here
> }
> ---
> Flags:
> category=core
> severity=medium
> ---
> Site configuration information for perl v5.6.0:
>
> Configured by knierim at Tue Aug 1 16:24:28 MET DST 2000.
>
> Summary of my perl5 (revision 5.0 version 6 subversion 0) configuration:
> Platform:
> osname=solaris, osvers=2.7, archname=sun4-solaris
> uname='sunos studsun1 5.7 generic_106541-07 sun4u sparc '
> config_args='-ds -e -Dprefix=/sw/solaris/2.7/perl-5.6.0 -Dcc='gcc''
> hint=recommended, useposix=true, d_sigaction=define
> usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef
> useperlio=undef d_sfio=undef uselargefiles=define
> use64bitint=undef use64bitall=undef uselongdouble=undef usesocks=undef
> Compiler:
> cc='gcc', optimize='-O', gccversion=2.95.2 19991024 (release)
> cppflags='-fno-strict-aliasing -I/opt/gnu/include'
> ccflags ='-fno-strict-aliasing -I/opt/gnu/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'
> stdchar='char', d_stdstdio=define, usevfork=false
> intsize=4, longsize=4, ptrsize=4, doublesize=8
> d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
> ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
> alignbytes=8, usemymalloc=y, prototype=define
> Linker and Libraries:
> ld='gcc', ldflags =' -L/opt/gnu/lib '
> libpth=/opt/gnu/lib /lib /usr/lib /usr/ccs/lib
> libs=-lsocket -lnsl -lgdbm -ldl -lm -lc -lcrypt -lsec
> libc=/lib/libc.so, so=so, useshrplib=false, libperl=libperl.a
> Dynamic Linking:
> dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' '
> cccdlflags='-fPIC', lddlflags='-G -L/opt/gnu/lib'
>
> Locally applied patches:
>
>
> ---
> @INC for perl v5.6.0:
> /sw/solaris/2.7/perl-5.6.0/lib/5.6.0/sun4-solaris
> /sw/solaris/2.7/perl-5.6.0/lib/5.6.0
> /sw/solaris/2.7/perl-5.6.0/lib/site_perl/5.6.0/sun4-solaris
> /sw/solaris/2.7/perl-5.6.0/lib/site_perl/5.6.0
> /sw/solaris/2.7/perl-5.6.0/lib/site_perl
> .
>
> ---
> Environment for perl v5.6.0:
> HOME=/
> LANG (unset)
> LANGUAGE (unset)
> LD_LIBRARY_PATH (unset)
> LOGDIR (unset)
> PATH=/sw/solaris/2.7/bin:/usr/sbin:/usr/bin
> PERL_BADLANG (unset)
> SHELL=/sbin/sh |