aboutsummaryrefslogtreecommitdiff
path: root/include/clang/Basic
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-03-20 00:32:56 +0000
committerDouglas Gregor <dgregor@apple.com>2009-03-20 00:32:56 +0000
commita6457963cf7ffe71498c408dd590d9d1acb9513c (patch)
treec747c6a2675d10c3dfd9471828811a82386d85e5 /include/clang/Basic
parent748d5d655d9df4e9f8b8ae93ecdd24d725cfb1b8 (diff)
Allow flexible array initializers that are not surrounded by
braces. We now build the appropriate fully-structured initializer list for such things. Per PR3618, verified that we're getting the right code generation. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67353 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic')
-rw-r--r--include/clang/Basic/DiagnosticSemaKinds.td2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/clang/Basic/DiagnosticSemaKinds.td b/include/clang/Basic/DiagnosticSemaKinds.td
index 8b6ef49542..0518094e4c 100644
--- a/include/clang/Basic/DiagnosticSemaKinds.td
+++ b/include/clang/Basic/DiagnosticSemaKinds.td
@@ -66,6 +66,8 @@ def err_designator_into_flexible_array_member : Error<
"designator into flexible array member subobject">;
def note_flexible_array_member : Note<
"initialized flexible array member %0 is here">;
+def ext_flexible_array_init : Extension<
+ "flexible array initialization is a GNU extension">;
// Declarations.
def ext_vla : Extension<