Front page | perl.perl5.porters |
Postings from June 2008
[perl #56150] return return
Thread Previous
|
Thread Next
From:
Nicholas Clark
Date:
June 20, 2008 08:56
Subject:
[perl #56150] return return
Message ID:
rt-3.6.HEAD-6656-1213974267-135.56150-75-0@perl.org
# New Ticket Created by Nicholas Clark
# Please include the string: [perl #56150]
# in the subject line of all future correspondence about this issue.
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=56150 >
This is a bug report for perl from nick@ccl4.org,
generated with the help of perlbug 1.39 running under perl 5.11.0.
-----------------------------------------------------------------
[Please describe your issue here]
$ ./perl -Ilib -e 'sub foo {return return}'
$
How come this isn't a syntax error? It can't possibly do anything useful.
(Actually, it seems that anything can be passed the return value of return.
C<print return> works just fine).
Nicholas Clark
[Please do not change anything below this line]
-----------------------------------------------------------------
---
Flags:
category=core
severity=low
---
Site configuration information for perl 5.11.0:
Configured by nick at Tue Jun 17 16:49:28 BST 2008.
Summary of my perl5 (revision 5 version 11 subversion 0) configuration:
Platform:
osname=linux, osvers=2.6.16.29-xenu, archname=x86_64-linux-stdio
uname='linux zazen 2.6.16.29-xenu #1 smp tue jan 9 00:53:46 gmt 2007 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 -Uusethreads -Uuse64bitint -Uusemymalloc -Dprefix=~/Sandpit/snap5.11.x-34070 -Dinstallman1dir=none -Dinstallmabn3dir=none -de -Uuserelocatableinc -Uuseperlio'
hint=recommended, useposix=true, d_sigaction=define
useithreads=undef, usemultiplicity=undef
useperlio=undef, d_sfio=undef, uselargefiles=define, usesocks=undef
use64bitint=define, use64bitall=define, uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='ccache gcc', ccflags ='-DDEBUGGING -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
optimize='-g',
cppflags='-DDEBUGGING -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include'
ccversion='', gccversion='4.1.2 20061115 (prerelease) (Debian 4.1.1-21)', 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 -lc
perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc
libc=/lib/libc-2.3.6.so, so=so, useshrplib=false, libperl=libperl.a
gnulibc_version='2.3.6'
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:
DEVEL
---
@INC for perl 5.11.0:
lib
/home/nick/Sandpit/snap5.11.x-34070/lib/perl5/5.11.0/x86_64-linux-stdio
/home/nick/Sandpit/snap5.11.x-34070/lib/perl5/5.11.0
/home/nick/Sandpit/snap5.11.x-34070/lib/perl5/site_perl/5.11.0/x86_64-linux-stdio
/home/nick/Sandpit/snap5.11.x-34070/lib/perl5/site_perl/5.11.0
.
---
Environment for perl 5.11.0:
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 Previous
|
Thread Next