On Wed, Jan 21, 2009 at 4:58 PM, Douglas Gregor <[email protected]> wrote:
> Author: dgregor
> Date: Wed Jan 21 18:58:24 2009
> New Revision: 62737
>
> URL: http://llvm.org/viewvc/llvm-project?rev=62737&view=rev
> Log:
> Initial implementation of semantic analysis and ASTs for C99
> designated initializers. This implementation should cover all of the
> constraints in C99 6.7.8, including long, complex designations and
> computing the size of incomplete array types initialized with a
> designated initializer. Please see the new test-case and holler if you
> find cases where this doesn't work.
Nice start! It looks like there's still a lot of work to do, though.
One simple case that doesn't work:
struct {int x,*y;} z[] = {[0].x = 2, &z[0].x};
I think this indicates a rather serious error in the way you're doing
the recursion.
Do you have any thoughts on how to implement CodeGen without
duplicating all the designator logic?
-Eli
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits