On Mon, Aug 6, 2012 at 7:47 PM, Eli Friedman <[email protected]> wrote:
> +      if (chunkIndex > 0) {
> +        const DeclaratorChunk &NextChunk = D.getTypeObject(chunkIndex - 1);
> +        if (NextChunk.Kind == DeclaratorChunk::Array) {
>
> This looks suspect: I think you need to trigger this error in more
> cases.  Consider, for example, "void f(int (*x)[static 10]);".  Take a
> look at checkQualifiedFunction.

Ah, thanks for pointing that out. Attaching a new attempt.

Thanks,
Hans

Attachment: static_in_array_decls2.patch
Description: Binary data

_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to