| commit | 720a054994599d85efb526f2da2267065760d267 | [log] [tgz] |
|---|---|---|
| author | Chris Lattner <sabre@nondot.org> | Thu Jan 25 00:44:24 2007 +0000 |
| committer | Chris Lattner <sabre@nondot.org> | Thu Jan 25 00:44:24 2007 +0000 |
| tree | 69108fd0803149add70dd06962ce6f9f4e0c1afc | |
| parent | 8262560b8b5f1c18e63492b5411666176d66583d [diff] |
Enforce the rest of C99 6.7.2.1p2, emitting diagnostics like:
t.c:10:15: warning: 'bonk' may not be nested in a struct due to flexible array member
struct bink bonk;
^
t.c:13:14: error: 'struct bink' may not be used as an array element due to flexible array member
struct bink A[123];
^
for:
struct bink {
struct bink *a;
int X[]; // ok.
};
struct foo {
int A;
struct bink bonk;
};
struct bink A[123];
llvm-svn: 39296