develooper Front page | perl.perl5.porters | Postings from May 2019

[perl #134125] Some incomplete expressions treated as valid

From:
karl williamson
Date:
May 22, 2019 18:33
Subject:
[perl #134125] Some incomplete expressions treated as valid
Message ID:
rt-4.0.24-29587-1558549985-1844.134125-75-0@perl.org
# New Ticket Created by  karl williamson 
# Please include the string:  [perl #134125]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=134125 >


This is a bug report for perl from khw@khw-xps-8930.(none),
generated with the help of perlbug 1.41 running under perl 5.31.0.


-----------------------------------------------------------------
These cases are extracted from [perl #112084]
https://rt.perl.org/Ticket/Display.html?id=112084

filed by Tom Christiansen, the rest of which has been fixed or rejected.

% blead -wle 'print 0x - 1'
1
% blead -wle 'print 0b - 1'
-1
% blead -wle 'print 0xx2'
00

Surely that's again an error? Those are the same kind of thing as this:

% blead -wle 'print 3.14e'
Bareword found where operator expected at -e line 1, near "3.14e"
(Missing operator before e?) Unquoted string "e" may clash with future
reserved word at -e line 1. syntax error at -e line 1, near "3.14e "
Execution of -e aborted due to compilation errors.
Exit 255

--tom
-----------------------------------------------------------------
---
Flags:
     category=core
     severity=low
---
Site configuration information for perl 5.31.0:

Configured by khw at Wed May 22 08:58:17 MDT 2019.

Summary of my perl5 (revision 5 version 31 subversion 0) configuration:
   Commit id: 58f4626762668e1c1948832073998af84b2c85d0
   Platform:
     osname=linux
     osvers=4.15.0-50-generic
     archname=x86_64-linux-thread-multi
     uname='linux khw-xps-8930 4.15.0-50-generic #54-ubuntu smp mon may 
6 18:46:08 utc 2019 x86_64 x86_64 x86_64 gnulinux '
     config_args='-des -Uversiononly -Dprefix=/home/khw/blead -Dusedevel 
-A'optimize=-ggdb3' -A'optimize=-O0' -Accflags='-Wno-deprecated' 
-Dman1dir=none -Dman3dir=none -Dcc=g++ -DDEBUGGING -Dusecbacktrace 
-Dusethreads'
     hint=recommended
     useposix=true
     d_sigaction=define
     useithreads=define
     usemultiplicity=define
     use64bitint=define
     use64bitall=define
     uselongdouble=undef
     usemymalloc=n
     default_inc_excludes_dot=define
     bincompat5005=undef
   Compiler:
     cc='g++'
     ccflags ='-D_REENTRANT -D_GNU_SOURCE -Wno-deprecated -fwrapv 
-DDEBUGGING -fno-strict-aliasing -pipe -fstack-protector-strong 
-I/usr/local/include -DUSE_C_BACKTRACE -g -D_LARGEFILE_SOURCE 
-D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2'
     optimize='-O2 -ggdb3 -O0'
     cppflags='-D_REENTRANT -D_GNU_SOURCE -Wno-deprecated -fwrapv 
-DDEBUGGING -fno-strict-aliasing -pipe -fstack-protector-strong 
-I/usr/local/include'
     ccversion=''
     gccversion='7.4.0'
     gccosandvers=''
     intsize=4
     longsize=8
     ptrsize=8
     doublesize=8
     byteorder=12345678
     doublekind=3
     d_longlong=define
     longlongsize=8
     d_longdbl=define
     longdblsize=16
     longdblkind=3
     ivtype='long'
     ivsize=8
     nvtype='double'
     nvsize=8
     Off_t='off_t'
     lseeksize=8
     alignbytes=8
     prototype=define
   Linker and Libraries:
     ld='g++'
     ldflags =' -fstack-protector-strong -L/usr/local/lib'
     libpth=/usr/include/c++/7 /usr/include/x86_64-linux-gnu/c++/7 
/usr/include/c++/7/backward /usr/local/lib 
/usr/lib/gcc/x86_64-linux-gnu/7/include-fixed 
/usr/include/x86_64-linux-gnu /usr/lib /lib/x86_64-linux-gnu /lib/../lib 
/usr/lib/x86_64-linux-gnu /usr/lib/../lib /lib
     libs=-lpthread -lnsl -ldl -lm -lcrypt -lutil -lc
     perllibs=-lpthread -lnsl -ldl -lm -lcrypt -lutil -lc
     libc=libc-2.27.so
     so=so
     useshrplib=false
     libperl=libperl.a
     gnulibc_version='2.27'
   Dynamic Linking:
     dlsrc=dl_dlopen.xs
     dlext=so
     d_dlsymun=undef
     ccdlflags='-Wl,-E'
     cccdlflags='-fPIC'
     lddlflags='-shared -O2 -ggdb3 -O0 -L/usr/local/lib 
-fstack-protector-strong'


---
@INC for perl 5.31.0:
     /home/khw/perl/blead/lib
     /home/khw/perl/blead/t
     /home/khw/blead/lib/perl5/site_perl/5.31.0/x86_64-linux-thread-multi
     /home/khw/blead/lib/perl5/site_perl/5.31.0
     /home/khw/blead/lib/perl5/5.31.0/x86_64-linux-thread-multi
     /home/khw/blead/lib/perl5/5.31.0
     /home/khw/blead/lib/perl5/site_perl/5.30.0
     /home/khw/blead/lib/perl5/site_perl/5.29.10
     /home/khw/blead/lib/perl5/site_perl/5.29.9
     /home/khw/blead/lib/perl5/site_perl/5.29.8
     /home/khw/blead/lib/perl5/site_perl/5.29.7
     /home/khw/blead/lib/perl5/site_perl/5.29.6
     /home/khw/blead/lib/perl5/site_perl/5.29.5
     /home/khw/blead/lib/perl5/site_perl/5.29.4
     /home/khw/blead/lib/perl5/site_perl/5.29.3
     /home/khw/blead/lib/perl5/site_perl/5.29.2
     /home/khw/blead/lib/perl5/site_perl/5.29.1
     /home/khw/blead/lib/perl5/site_perl/5.29.0
     /home/khw/blead/lib/perl5/site_perl/5.28.0
     /home/khw/blead/lib/perl5/site_perl/5.27.11
     /home/khw/blead/lib/perl5/site_perl/5.27.10
     /home/khw/blead/lib/perl5/site_perl/5.27.9
     /home/khw/blead/lib/perl5/site_perl/5.27.8
     /home/khw/blead/lib/perl5/site_perl/5.27.7
     /home/khw/blead/lib/perl5/site_perl/5.27.6
     /home/khw/blead/lib/perl5/site_perl/5.27.5
     /home/khw/blead/lib/perl5/site_perl/5.27.4
     /home/khw/blead/lib/perl5/site_perl/5.27.3
     /home/khw/blead/lib/perl5/site_perl/5.27.2
     /home/khw/blead/lib/perl5/site_perl/5.27.1
     /home/khw/blead/lib/perl5/site_perl/5.27.0
     /home/khw/blead/lib/perl5/site_perl/5.26.0
     /home/khw/blead/lib/perl5/site_perl/5.25.12
     /home/khw/blead/lib/perl5/site_perl/5.25.11
     /home/khw/blead/lib/perl5/site_perl/5.25.10
     /home/khw/blead/lib/perl5/site_perl/5.25.9
     /home/khw/blead/lib/perl5/site_perl/5.25.8
     /home/khw/blead/lib/perl5/site_perl/5.25.7
     /home/khw/blead/lib/perl5/site_perl/5.25.6
     /home/khw/blead/lib/perl5/site_perl/5.25.5
     /home/khw/blead/lib/perl5/site_perl/5.25.4
     /home/khw/blead/lib/perl5/site_perl/5.25.3
     /home/khw/blead/lib/perl5/site_perl/5.25.2
     /home/khw/blead/lib/perl5/site_perl/5.25.1
     /home/khw/blead/lib/perl5/site_perl/5.24.0
     /home/khw/blead/lib/perl5/site_perl/5.23.10
     /home/khw/blead/lib/perl5/site_perl/5.23.9
     /home/khw/blead/lib/perl5/site_perl/5.23.8
     /home/khw/blead/lib/perl5/site_perl/5.23.7
     /home/khw/blead/lib/perl5/site_perl/5.23.6
     /home/khw/blead/lib/perl5/site_perl/5.23.5
     /home/khw/blead/lib/perl5/site_perl/5.23.4
     /home/khw/blead/lib/perl5/site_perl/5.23.3
     /home/khw/blead/lib/perl5/site_perl/5.23.2
     /home/khw/blead/lib/perl5/site_perl/5.23.1
     /home/khw/blead/lib/perl5/site_perl/5.23.0
     /home/khw/blead/lib/perl5/site_perl/5.22.0
     /home/khw/blead/lib/perl5/site_perl/5.21.12
     /home/khw/blead/lib/perl5/site_perl/5.21.11
     /home/khw/blead/lib/perl5/site_perl/5.21.10
     /home/khw/blead/lib/perl5/site_perl/5.21.9
     /home/khw/blead/lib/perl5/site_perl/5.21.8
     /home/khw/blead/lib/perl5/site_perl/5.21.7
     /home/khw/blead/lib/perl5/site_perl/5.21.6
     /home/khw/blead/lib/perl5/site_perl/5.21.5
     /home/khw/blead/lib/perl5/site_perl/5.21.4
     /home/khw/blead/lib/perl5/site_perl/5.21.3
     /home/khw/blead/lib/perl5/site_perl/5.21.2
     /home/khw/blead/lib/perl5/site_perl/5.21.1
     /home/khw/blead/lib/perl5/site_perl/5.20.0
     /home/khw/blead/lib/perl5/site_perl/5.19.12
     /home/khw/blead/lib/perl5/site_perl/5.19.11
     /home/khw/blead/lib/perl5/site_perl/5.19.10
     /home/khw/blead/lib/perl5/site_perl

---
Environment for perl 5.31.0:
     HOME=/home/khw
     LANG=en_US.UTF-8
     LANGUAGE=en
     LD_LIBRARY_PATH (unset)
     LOGDIR (unset)
 
PATH=/usr/lib/ccache:/home/khw/bin:/home/khw/perl5/perlbrew/bin:/home/khw/print/bin:/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/usr/games:/usr/local/games:/snap/bin:/home/khw/iands/www:/home/khw/cxoffice/bin
     PERL5OPT=
     PERL_BADLANG (unset)
     PERL_DIFF_TOOL=wgdiff
     PERL_POD_PEDANTIC=1
     SHELL=/usr/bin/ksh




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