> I saw the flag situation after I sent my message.  There must be a "Keeper of 
> the Sacred Tree Flag Set"
There are a few comments en tree.h about that, I if remember correctly...

> I get the idea the real estate is at a premium and consuming flags could be
> a problem.
> Perhaps there is a context flag saying "You're inside braces" or something
> so we wouldn't need the second flag.
I think one flag should be enough. It is set just when the constant
list is added. Then, in another declaration, if you see a constant
list and the flag is set, it is an error.

> I'll try to figure out what is done with classes, unions, etc. in this
> regard.  Basically this is the same situation.
Actually it is not (I've already tried that). With classes, a forward
declaration creates an incomplete type, and they use a predicate
TYPE_COMPLETED_P() or something like that. But a forward enum always
defines a complete type, so this test is not useful.

Rodrigo.

Reply via email to