WRCI crashes in isValidIndexHelper if el is N_num.
|
|
Bugzilla Link |
1148 |
Created on |
Mar 10, 2015 16:21 |
Resolution |
FIXED |
Resolved on |
Mar 10, 2015 18:20 |
Version |
svn |
OS |
Linux |
Architecture |
PC |
Attachments |
SAACFprf_lt_VxS.sac |
Extended Description
Created an attachment (id=1032)
source code to cause failure
:~/sac/testsuite/optimizations/pogorelationals$ sac2c -nopogo -v1 SAACFprf_lt_VxS.sac -nocf -noewlcf -v4 -nopogo
**** Inferencing with-loop reuse candidates ...
Internal compiler error
Assertion "NODE_TYPE( *PATTR_N1(attr)) == N_id" failed at tree/pattern_match_attribs.c:255 -- var in PMAisVar points to a non N_id node
Please file a bug at: http://bugs.sac-home.org
sac2c -V
sac2c v1.00-beta (Haggis And Apple)
developer rev 18530 linux-gnu_x86_64
(Mon Mar 9 17:42:21 EDT 2015 by sac)
This problem occurs when we are doing _idx_sel_( 0, iv), and are
running with -nocf. [Hence, the "minor" nature of the fault.]
The code contains a PM that has PMisVar(), which fails because 0 is not
an N_id.
It also looks like the FREEdoFreeNode(idsid) should be inside the
while loop that creates the N_id used by PM.