develooper Front page | perl.perl5.porters | Postings from January 2013

[perl #116553] B::Deparse doesn't handle lexical subs

From:
Aaron Crane
Date:
January 27, 2013 11:20
Subject:
[perl #116553] B::Deparse doesn't handle lexical subs
Message ID:
rt-3.6.HEAD-27190-1359285586-115.116553-75-0@perl.org
# New Ticket Created by  Aaron Crane 
# Please include the string:  [perl #116553]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org:443/rt3/Ticket/Display.html?id=116553 >


This is a bug report for perl from arc@cpan.org,
generated with the help of perlbug 1.39 running under perl 5.17.9.


-----------------------------------------------------------------
[Please describe your issue here]

B::Deparse doesn't understand the introcv, clonecv, or padcv ops, used by
lexical subs:

$ ./perl -Ilib -MO=Deparse -e 'use feature "lexical_subs"; no
warnings; my sub f {}; print f()'
unexpected OP_INTROCV at lib/B/Deparse.pm line 1250.
unexpected OP_CLONECV at lib/B/Deparse.pm line 1250.
do {
    XXX;
    XXX
};
unexpected OP_PADCV at lib/B/Deparse.pm line 1250.
no warnings;
use feature 'lexical_subs';
print XXX->();
-e syntax OK

I'll commit a TODO test for this once I've got a ticket number from RT.


[Please do not change anything below this line]
-----------------------------------------------------------------
---
Flags:
    category=library
    severity=low
    module=B::Deparse
---
Site configuration information for perl 5.17.9:

Configured by aaron at Sun Jan 27 10:38:21 GMT 2013.

Summary of my perl5 (revision 5 version 17 subversion 9) configuration:
  Commit id: 48e25610e9bc068523de995899ed4f9f130eef08
  Platform:
    osname=darwin, osvers=10.8.0, archname=darwin-2level
    uname='darwin daybreak 10.8.0 darwin kernel version 10.8.0: tue
jun 7 16:33:36 pdt 2011; root:xnu-1504.15.3~1release_i386 i386 i386
macbookpro5,4 darwin '
    config_args='-des -Dusedevel -Dprefix=/tmp/blead'
    hint=recommended, useposix=true, d_sigaction=define
    useithreads=undef, usemultiplicity=undef
    useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
    use64bitint=define, use64bitall=define, uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='cc', ccflags ='-fno-common -DPERL_DARWIN -fno-strict-aliasing
-pipe -fstack-protector -I/opt/local/include',
    optimize='-O3',
    cppflags='-fno-common -DPERL_DARWIN -fno-strict-aliasing -pipe
-fstack-protector -I/opt/local/include'
    ccversion='', gccversion='4.2.1 (Apple Inc. build 5666) (dot 3)',
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='env MACOSX_DEPLOYMENT_TARGET=10.3 cc', ldflags ='
-fstack-protector -L/opt/local/lib'
    libpth=/opt/local/lib /usr/lib
    libs=-lgdbm -ldbm -ldl -lm -lutil -lc
    perllibs=-ldl -lm -lutil -lc
    libc=, so=dylib, useshrplib=false, libperl=libperl.a
    gnulibc_version=''
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=bundle, d_dlsymun=undef, ccdlflags=' '
    cccdlflags=' ', lddlflags=' -bundle -undefined dynamic_lookup
-L/opt/local/lib -fstack-protector'

Locally applied patches:


---
@INC for perl 5.17.9:
    lib
    /tmp/blead/lib/perl5/site_perl/5.17.9/darwin-2level
    /tmp/blead/lib/perl5/site_perl/5.17.9
    /tmp/blead/lib/perl5/5.17.9/darwin-2level
    /tmp/blead/lib/perl5/5.17.9
    .

---
Environment for perl 5.17.9:
    DYLD_LIBRARY_PATH (unset)
    HOME=/Users/aaron
    LANG=en_GB.UTF-8
    LANGUAGE (unset)
    LC_COLLATE=C
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PATH=/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
    SHELL=/bin/bash


-- 
Aaron Crane ** http://aaroncrane.co.uk/




nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About