--- Comment #3 from Jan Hubicka <hubicka at gcc dot> 2010-09-25 
22:10:15 UTC ---
normally we should see it from COMPONENT_REF:
  while (true)
      if (TREE_CODE (ref) == COMPONENT_REF)
          tree par_type;
          tree binfo, base_binfo;
          tree field = TREE_OPERAND (ref, 1);

          if (!DECL_ARTIFICIAL (field))
              tree type = TREE_TYPE (field);
              if (TREE_CODE (type) == RECORD_TYPE)
                return TYPE_BINFO (type);
                return NULL_TREE;
but we don't since it has DECL_ARTIFICIAL set.  What is the logic here?
Also what about i.e. ARRAY_REF and arrays of objects and COMPONENT_REFs
translated to MEM_REFs?


Reply via email to