N_array NODE_TYPE AKS when LHS is AKV
|
|
Bugzilla Link |
630 |
Created on |
Dec 18, 2009 16:01 |
Resolution |
FIXED |
Resolved on |
Dec 19, 2009 20:44 |
Version |
svn |
OS |
Linux |
Architecture |
PC |
Extended Description
This may or may not be a bug, but it is certainly confusing:
A constant N_array node, such as "xx = [ 2 ]", has an ARRAY_ELEMTYPE of AKS,
although all of its elements are AKV. Furthermore, xx is of type AKV, too.
1. Should not ARRAY_ELEMTYPE also be AKV?
2. If there is substantial reason for it being AKS, then I think we should
extend TYisAKV() to handle N_array nodes properly, by looking to see
if all of its elements are AKV.