On 03/26/2013 11:00 AM, Paolo Carlini wrote:
+ tree ce_index = cxx_constant_value (ce->index); + + if (TREE_CODE (ce_index) == INTEGER_CST) + { /* A C99 designator is OK if it matches the current index. */ - if (TREE_INT_CST_LOW (ce->index) == index) + if (TREE_INT_CST_LOW (ce_index) == index) return true;
Hmm, it occurs to me that we probably want to replace ce->index with the constant value for the benefit of varasm. I'm surprised that the testcase passes without doing that.
Jason