On 09/21/2010 07:05 PM, Rodrigo Rivas wrote:
I had to initialize the variable nested_being_defined to get it to compile
(possible uninitialized warning). I initialized it to false.
Ok, actually it is never used uninitialized, but let's get rid of the warning.
I saw that it was never used uninitialized and was surprised gcc wasn't
able to diagnose that.
My bootstrap failed because of -Werror which is turned on by default I
guess.
It looks like the first two are related. What does an enum look like in
tree? Maybe the tree for enum could have a has_definition flag.
As far as I know it is a "tree_type". I was thinking of using
lang_flag_0 or similar, but I'm unsure if they are used for any other
purpose, or if there is a protocol to assign them...
I saw the flag situation after I sent my message. There must be a
"Keeper of the Sacred Tree Flag Set" somewhere.
Also, my scheme of flagging on first declaration and also flagging
definition would consume two flags.
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'll try to figure out what is done with classes, unions, etc. in this
regard. Basically this is the same situation.
Rodrigo
Ed