Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.1.7

Bug #11645 unused rhs labels undetected
Submitted: 2007-07-19 19:05 UTC
From: r0vert Assigned: r0vert
Status: Closed Package: PHP_ParserGenerator (version CVS)
PHP Version: Irrelevant OS:
Roadmaps: (Not assigned)    
Subscription  


 [2007-07-19 19:05 UTC] r0vert (Trevor Sluis)
Description: ------------ Unused right-hand side labels are not detected properly. Test script: --------------- list(A) ::= list(B) COMMA(C) item(D). { A = B . ', '. D; } Expected result: ---------------- Label C for "COMMA(C)" is never used.

Comments

 [2007-07-19 19:13 UTC] r0vert (Trevor Sluis)
[Patch] ParserGenerator/Data.php @@ -1709,10 +1709,6 @@ $lhsused = 0; /* True if the LHS element has been used */ $used = array(); /* True for each RHS element which is used */ - for($i = 0; $i < $rp->nrhs; $i++) { - $used[$i] = 0; - } -
 [2007-08-18 23:12 UTC] cellog (Greg Beaver)
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.