[cfe-dev] gcc incompatibility

Eli Friedman eli.friedman at gmail.com
Thu Aug 28 11:47:34 PDT 2008


On Thu, Aug 28, 2008 at 11:32 AM, Nico Weber <nicolasweber at gmx.de> wrote:
> Hi,
>
> here's a gcc incompatibility:
>
> clangtut nico$ cat test.c
> int t[*];
> clangtut nico$ clang test.c
> clangtut nico$ gcc test.c
> test.c:1: error: '[*]' not allowed in other than function prototype
> scope
>
> By the way, what does `[*]` mean?

This is similar to http://llvm.org/bugs/show_bug.cgi?id=2361; roughly,
[*] is an incomplete VLA type.

-Eli



More information about the cfe-dev mailing list