nayakgi / perl-compiler

Automatically exported from code.google.com/p/perl-compiler
Other
0 stars 0 forks source link

C,-O3 still broken for pv2iv conversion for ranges: "-3" .. "0" #234

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
$>perlcc -O3 -r -e '$c = 0; for ("-3" .. "0") { $c++ } ; print "$c\n"'
1

What do you see instead?
$>perl -e '$c = 0; for ("-3" .. "0") { $c++ } ; print "$c\n"'
4

Original issue reported on code.google.com by todd.e.rinaldo on 27 Nov 2013 at 10:36

GoogleCodeExporter commented 9 years ago
-O1 passes on this test:

$>perlcc -O1 -r -e '$c = 0; for ("-3" .. "0") { $c++ } ; print "$c\n"'
4

Original comment by todd.e.rinaldo on 28 Nov 2013 at 12:28

GoogleCodeExporter commented 9 years ago

Original comment by reini.urban on 30 Nov 2013 at 5:35

GoogleCodeExporter commented 9 years ago
Fixed with 1.42_61 commit 82b6c0a65514602b36c03ffb4013094e3bfaafdf
Author: Reini Urban <rurban@cpanel.net>
Date:   Mon Dec 2 12:45:24 2013 -0600

    C: Fix edge-case in new-cog, negative numeric strings #234

Original comment by reini.urban on 2 Dec 2013 at 6:48

GoogleCodeExporter commented 9 years ago
Issue 244 has been merged into this issue.

Original comment by reini.urban on 2 Dec 2013 at 7:06

GoogleCodeExporter commented 9 years ago
Issue 252 has been merged into this issue.

Original comment by reini.urban on 3 Dec 2013 at 5:55