[cfe-dev] parsing of self-referring vardecls
Chris Lattner
clattner at apple.com
Tue Sep 11 14:37:11 PDT 2007
On Sep 11, 2007, at 2:14 PM, Steve Naroff wrote:
> On Sep 11, 2007, at 1:53 PM, Chris Lattner wrote:
>
>> On Sep 11, 2007, at 11:28 AM, Ted Kremenek wrote:
>>> I'm not certain if vardecls are being correctly parsed. Consider
>>> the
>>> following program (self-decl.c):
>>
>> You're right, this looks like a bug in the initializer parsing
>> stuff. "var" should be added to the scope chain before the
>> initializer for var is parsed. This will require some juggling of
>> the actions hooks though, so it will be non-trivial.
>>
>> Steve, can you add this to your todo list?
>>
>
> Already added...Ted and I discussed this over lunch.
>
> As you say, the fix requires some redesign of the parser/action
> dance...
Thanks Steve!
-Chris
More information about the cfe-dev
mailing list