------- Comment #1 from rguenth at gcc dot gnu dot org 2009-02-24 13:27 ------- This is because as we come here (gen_enumeration_type_die):
for (link = TYPE_VALUES (type); link != NULL; link = TREE_CHAIN (link)) { dw_die_ref enum_die = new_die (DW_TAG_enumerator, type_die, link); tree value = TREE_VALUE (link); add_name_attribute (enum_die, IDENTIFIER_POINTER (TREE_PURPOSE (link))); if (host_integerp (value, TYPE_UNSIGNED (TREE_TYPE (value)))) value is a CONST_DECL, not an integer constant. Whereas for GCC 4.3 we had INTEGER_CSTs there. -- rguenth at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Last reconfirmed|0000-00-00 00:00:00 |2009-02-24 13:27:44 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39285