]> granicus.if.org Git - clang/commit
GNU allows structs with flexible array members to be placed inside
authorDouglas Gregor <dgregor@apple.com>
Tue, 10 Feb 2009 21:49:46 +0000 (21:49 +0000)
committerDouglas Gregor <dgregor@apple.com>
Tue, 10 Feb 2009 21:49:46 +0000 (21:49 +0000)
commit0bfe54fdc83b7b4e37c40e652d86d15aa89885b2
tree11a7e3a0d742ebdf07a48547b142d277b176ef65
parentb53e3e71383233ebb68a6a736cbe8af6d8065700
GNU allows structs with flexible array members to be placed inside
arrays and other structs/unions as an extension. Downgrade our error
to a warning. Fixes PR3540.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64239 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.def
lib/Sema/SemaType.cpp
test/Sema/array-constraint.c
test/Sema/flexible-array-init.c