New TRAV mech fails on nested LOCALFNS
|
|
Bugzilla Link |
866 |
Created on |
Aug 30, 2011 19:13 |
Resolution |
INVALID |
Resolved on |
Aug 30, 2011 19:59 |
Version |
svn |
OS |
Linux |
Architecture |
PC |
Attachments |
bug650Bivecyc.sac |
Extended Description
Created an attachment (id=816)
source code to reproduce failure
I changed CWLE to use the new TRAV() mechanism, but
there's a small problem with it:
When it invokes a LACFUN, that LACFUN's FUNDEF_LOCALFNS
node is NULL, even when it has a LOCALFUN.
In this case, a COND fun invokes a LOOP() fun, but
said LOOP() fun does not appear in the COND()'s LOCALFNS
list (It's NULL).
cd ~/sac/testsuite/optimizations/cwle
sac2c -nocyc -noawlf -nowlf bug650Bivecyc.sac
will do the job for you.
sac2c -V
sac2c v1.00-beta (Haggis And Apple)
developer rev 17581:MODIFIED linux-gnu_x86_64
(Tue Aug 30 13:55:04 EDT 2011 by sac)