[cfe-commits] [Patch] Produce errors for 'static' and type qualifiers in array declarators

Hans Wennborg hans at chromium.org
Wed Aug 15 00:47:18 PDT 2012


On Tue, Aug 14, 2012 at 9:03 PM, John McCall <rjmccall at apple.com> wrote:
> On Aug 14, 2012, at 11:59 AM, Hans Wennborg wrote:
>> On Tue, Aug 14, 2012 at 6:28 PM, John McCall <rjmccall at apple.com> wrote:
>>> Looks great, thanks!  Might as well add a test for the function and block-pointer
>>> cases (to verify that an error is emitted, but not this one), but feel free to commit.
>>
>> Now that I start playing with it, I don't seem to get any errors for
>> the block-pointer case.
>
> The case I had in mind was something like this:
>    void f(int (^x)[static 10]);
> This is ill-formed because you can't form a block pointer to array type.

Ah, thanks for the clarification. Landed in r161934 with the added tests.

Thanks,
Hans



More information about the cfe-commits mailing list