[cfe-dev] Error on valid array variable declaration?

Steve Naroff snaroff at apple.com
Sat Jan 19 07:39:15 PST 2008


Eli,

As I said yesterday (in an email to Neil), there are still FIXME's wrt  
tentative definitions.

I need to focus on struct initializers, so I won't be able to get to  
this immediately.

Thanks for the testcase,

snaroff

On Jan 18, 2008, at 10:23 PM, Eli Friedman wrote:

> On Jan 18, 2008 12:42 PM, Steve Naroff <snaroff at apple.com> wrote:
>> Fixed by r46179.
>
> This testcase shouldn't give any errors or warnings.  The declaration
> of bar is a tentative definition.
>
> struct foo bar;
> struct foo* a() {
> return &bar;
> }
> struct foo {int a; int b;};
>
> This testcase should give an error (at least in -pedantic mode):
> static int s[];
>
> -Eli




More information about the cfe-dev mailing list