> [wjones - Thu Jun 19 10:30:36 2003]: > > This patch works for me. > > Index: regcomp.c > =================================================================== > RCS file: /usr0/sweng/src/active/CVS.repo/perl/regcomp.c,v > retrieving revision 1.1.1.4 > retrieving revision 1.4 > diff -u -r1.1.1.4 -r1.4 > --- regcomp.c 29 Jul 2002 16:20:00 -0000 1.1.1.4 > +++ regcomp.c 19 Jun 2003 17:10:39 -0000 1.4 > @@ -19,6 +19,17 @@ > * with the POSIX routines of the same names. > */ > > +/* > + * Turn off all optimization with MS Visual C under Windows. > + * Optimization makes tests 495 and 496 fail in op/regexp.t. > + * This is a fix for Perl bug #15995 (really a bug in MSC). > + * _MSC_VER == 1100 indicates MS Visual C 5.0. Other versions > + * of the compiler may or may not have the same bug. > +*/ > +#if defined(WIN32) && defined(_MSC_VER) && _MSC_VER == 1100 > +#pragma optimize( "", off ) > +#endif > + > #ifdef PERL_EXT_RE_BUILD > /* need to replace pregcomp et al, so enable that */ > # ifndef PERL_IN_XSUB_RE >
Can anyone confirm whether these failures still occur on Windows with VC++ 5.0 and if this patch fixes the problem?