[cfe-commits] r58220 - in /cfe/trunk: include/clang/Parse/Designator.h lib/CodeGen/CGExprAgg.cpp lib/CodeGen/CGExprConstant.cpp lib/CodeGen/CGExprScalar.cpp

Chris Lattner clattner at apple.com
Sun Oct 26 16:53:56 PDT 2008


On Oct 26, 2008, at 4:53 PM, Chris Lattner wrote:

> Author: lattner
> Date: Sun Oct 26 18:53:12 2008
> New Revision: 58220
>
> URL: http://llvm.org/viewvc/llvm-project?rev=58220&view=rev
> Log:
> make codegen reject initializes with designators, like this:
>
> t.c:1:13: error: cannot codegen this designators yet
> int a[10] = {2, 4, [8]=9, 10};
>            ^~~~~~~~~~~~~~~~~

Oops, the message is really:

t.c:1:13: error: cannot codegen this initializer list with designators  
yet
int a[10] = {2, 4, [8]=9, 10};
             ^~~~~~~~~~~~~~~~~

-Chris



More information about the cfe-commits mailing list