aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/Sema/SemaDecl.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Sema/SemaDecl.cpp b/lib/Sema/SemaDecl.cpp
index 9d3947bfcd..800ffc5706 100644
--- a/lib/Sema/SemaDecl.cpp
+++ b/lib/Sema/SemaDecl.cpp
@@ -562,6 +562,7 @@ bool Sema::CheckInitializerTypes(Expr *&Init, QualType &DeclType) {
if (StringLiteral *strLiteral = IsStringLiteralInit(Init, DeclType))
return CheckStringLiteralInit(strLiteral, DeclType);
+ // C99 6.7.8p16.
if (DeclType->isArrayType())
return Diag(Init->getLocStart(),
diag::err_array_init_list_required,