]> granicus.if.org Git - clang/commit
Implement semantic analysis for the GNU flexible array initialization
authorDouglas Gregor <dgregor@apple.com>
Wed, 4 Feb 2009 22:46:25 +0000 (22:46 +0000)
committerDouglas Gregor <dgregor@apple.com>
Wed, 4 Feb 2009 22:46:25 +0000 (22:46 +0000)
commiteeb15d499f032bb89773ddaca2d17475122a37bb
treee74f990d3f40d2c180b21d0e7f8b9a57148792c2
parent98eb8a7a702b95183ed015706b1f1c66f5cb27a4
Implement semantic analysis for the GNU flexible array initialization
extension. The interaction with designated initializers is a
bit... interesting... but we follow GNU's lead and don't permit too
much crazy code in this area.

Also, make the "excess initializers" error message a bit more
informative.

Addresses PR2561: http://llvm.org/bugs/show_bug.cgi?id=2561

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63785 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.def
lib/Sema/Sema.cpp
lib/Sema/SemaInit.cpp
test/Sema/array-init.c
test/Sema/flexible-array-init.c [new file with mode: 0644]
test/SemaCXX/dcl_init_aggr.cpp