develooper Front page | perl.perl5.porters | Postings from November 2000

[ID 20001130.011] expression parsing bug ?

Thread Next
From:
Helmut Jarausch
Date:
November 30, 2000 12:09
Subject:
[ID 20001130.011] expression parsing bug ?
Message ID:
200011302009.VAA48143@numa1.igpm.rwth-aachen.de

This is a bug report for perl from jarausch@igpm.rwth-aachen.de,
generated with the help of perlbug 1.33 running under perl v5.7.0.


-----------------------------------------------------------------
[Please enter your report here]

Unless I'm a bit dumb this evening the following script
generates a syntax error which looks like a bug.


use strict;

sub f($) {
  return exp($_[0])-2;
}

sub f1($) { return exp($_[0]); }

print f(1),"\n",f1(1),"\n";

my $x = 1;
my $r;
$r= f($x)/f1($x);
$r= $x -$r;
# the following line will give a syntax error near "$x-f"
# $r = $x-f($x)/f1($x);
print "r= $r\n";


[Please do not change anything below this line]
-----------------------------------------------------------------
---
Flags:
    category=core
    severity=high
---
Site configuration information for perl v5.7.0:

Configured by jarausch at Fri Nov 24 10:40:30 CST 2000.

Summary of my perl5 (revision 5.0 version 7 subversion 0) configuration:
  Platform:
    osname=irix, osvers=6.5, archname=IP26-irix
    uname='irix64 numa1 6.5 10181059 ip26 '
    config_args='-Dcc=cc -Dprefix=/usr/LOCAL -Dlocincpth=/usr/LOCAL/include -Dloclibpth=/usr/LOCAL/lib'
    hint=previous, useposix=true, d_sigaction=define
    usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef
    useperlio=undef d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=undef use64bitall=undef uselongdouble=undef
  Compiler:
    cc='cc', ccflags ='-D_BSD_TYPES -D_BSD_TIME -I/usr/LOCAL/include -DLANGUAGE_C',
    optimize='-O3 -OPT:Olimit=0:space=on -mips4',
    cppflags='-D_BSD_TYPES -D_BSD_TIME -I/usr/LOCAL/include -DLANGUAGE_C'
    ccversion='', gccversion='', gccosandvers=''
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321
    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=n, prototype=define
  Linker and Libraries:
    ld='cc', ldflags =' -Wl,-woff,84 -L/usr/LOCAL/lib'
    libpth=/usr/LOCAL/lib /usr/lib32 /lib32
    libs=-lgdbm -ldb -lm -lc
    perllibs=-lm -lc
    libc=/usr/lib32/libc.so, so=so, useshrplib=true, libperl=libperl.so
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='  -Wl,-rpath,/usr/LOCAL/lib/perl5/5.7.0/IP26-irix/CORE'
    cccdlflags='-KPIC', lddlflags='-shared -L/usr/LOCAL/lib'

Locally applied patches:
    DEVEL7928

---
@INC for perl v5.7.0:
    /usr/LOCAL/lib/perl5/5.7.0/IP26-irix
    /usr/LOCAL/lib/perl5/5.7.0
    /usr/LOCAL/lib/perl5/site_perl/5.7.0/IP26-irix
    /usr/LOCAL/lib/perl5/site_perl/5.7.0
    /usr/LOCAL/lib/perl5/site_perl
    .

---
Environment for perl v5.7.0:
    HOME=/usr/people/jarausch
    LANG=C
    LANGUAGE (unset)
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PATH=.:/usr/people/jarausch/bin:/usr/PRIVATE/bin:/usr/LOCAL/bin:/usr/LOCAL/teTeX/bin:/usr/bin:/usr/java/bin:/usr/bsd:/bin:/usr/bin/X11:/usr/local/bin:/usr/local/bin/X11:/usr/sbin:/usr/demos/bin
    PERL_BADLANG (unset)
    SHELL=/bin/zsh


Thread Next


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