[cfe-dev] Error on valid array variable declaration?
Eli Friedman
eli.friedman at gmail.com
Fri Jan 18 22:23:42 PST 2008
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