# New Ticket Created by [EMAIL PROTECTED]
# Please include the string: [perl #34231]
# in the subject line of all future correspondence about this issue.
# <URL: https://rt.perl.org/rt3/Ticket/Display.html?id=34231 >
This is a bug report for perl from [EMAIL PROTECTED],
generated with the help of perlbug 1.35 running under perl v5.8.6.
A subroutine forward declaration without a prototype
does not cause a prototype mismatch warning when the
sub is later declared with a prototype.
$ perl586 -Mwarnings -e 'sub x; sub x () {}'
$
In Perl 5.6.1 a warning is produced in this situation.
$ perl561 -Mwarnings -e 'sub x; sub x () {}'
Prototype mismatch: sub main::x vs () at -e line 1.
$
However when the forward declaration contains a prototype
the warning is generated.
$ perl586 -Mwarnings -e 'sub x ($); sub x () {}'
Prototype mismatch: sub main::x ($) vs () at -e line 1.
$
---
Flags:
category=core
severity=low
---
Site configuration information for perl v5.8.6:
Configured by p013176 at Tue Dec 7 10:11:46 CET 2004.
Summary of my perl5 (revision 5 version 8 subversion 6) configuration:
Platform:
osname=solaris, osvers=2.9, archname=sun4-solaris-thread-multi-64int
uname='sunos oikbm03 5.9 generic_112233-01 sun4u sparc sunw,ultra-5_10 '
config_args='-Dprefix=/opt/perl -Uinstallusrbinperl -Dcc=gcc
-Doptimize=-O2 -Aldflags=-R/usr/local/lib -Duseshrplib -Duseperlio
-Dusethreads -Duselargefiles -Duse64bitint -des'
hint=recommended, useposix=true, d_sigaction=define
usethreads=define use5005threads=undef useithreads=define
usemultiplicity=define
useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=define use64bitall=undef uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='gcc', ccflags ='-D_REENTRANT -fno-strict-aliasing -pipe
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
optimize='-O2',
cppflags='-D_REENTRANT -fno-strict-aliasing -pipe -I/usr/local/include'
ccversion='', gccversion='3.3.2', gccosandvers='solaris2.9'
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=87654321
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
ivtype='long long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=8
alignbytes=8, prototype=define
Linker and Libraries:
ld='gcc', ldflags =' -R/usr/local/lib -L/usr/local/lib '
libpth=/usr/local/lib /usr/lib /usr/ccs/lib
libs=-lsocket -lnsl -lgdbm -ldl -lm -lpthread -lc
perllibs=-lsocket -lnsl -ldl -lm -lpthread -lc
libc=/lib/libc.so, so=so, useshrplib=true, libperl=libperl.so
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' -R
/opt/perl/lib/5.8.6/sun4-solaris-thread-multi-64int/CORE'
cccdlflags='-fPIC', lddlflags='-G -R/usr/local/lib -L/usr/local/lib'
Locally applied patches:
---
@INC for perl v5.8.6:
/opt/perl/lib/5.8.6/sun4-solaris-thread-multi-64int
/opt/perl/lib/5.8.6
/opt/perl/lib/site_perl/5.8.6/sun4-solaris-thread-multi-64int
/opt/perl/lib/site_perl/5.8.6
/opt/perl/lib/site_perl
.
---
Environment for perl v5.8.6:
HOME=/export/home/p013176
LANG (unset)
LANGUAGE (unset)
LD_LIBRARY_PATH (unset)
LOGDIR (unset)
PATH=/usr/sbin/:/opt/perl/bin/:/usr/bin:/usr/local/bin
PERL_BADLANG (unset)
SHELL=/bin/sh