Re: [C++] enumerators and check_initializer

2006-01-15 Thread Mark Mitchell
Gabriel Dos Reis wrote: > Hi, > > We have the following code in decl.c:check_initializer(): > > > if (TREE_CODE (decl) == CONST_DECL) > { > gcc_assert (TREE_CODE (decl) != REFERENCE_TYPE); > > DECL_INITIAL (decl) = init; > > gcc_assert (init != NULL_TREE); > ini

[C++] enumerators and check_initializer

2006-01-15 Thread Gabriel Dos Reis
Hi, We have the following code in decl.c:check_initializer(): if (TREE_CODE (decl) == CONST_DECL) { gcc_assert (TREE_CODE (decl) != REFERENCE_TYPE); DECL_INITIAL (decl) = init; gcc_assert (init != NULL_TREE); init = NULL_TREE; } If decl is a CONST_DECL, t