summaryrefslogtreecommitdiffstats
path: root/clang/AST/Decl.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-01-25 00:44:24 +0000
committerChris Lattner <sabre@nondot.org>2007-01-25 00:44:24 +0000
commit720a054994599d85efb526f2da2267065760d267 (patch)
tree69108fd0803149add70dd06962ce6f9f4e0c1afc /clang/AST/Decl.cpp
parent8262560b8b5f1c18e63492b5411666176d66583d (diff)
downloadbcm5719-llvm-720a054994599d85efb526f2da2267065760d267.tar.gz
bcm5719-llvm-720a054994599d85efb526f2da2267065760d267.zip
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
Diffstat (limited to 'clang/AST/Decl.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud