More progress on array initializers.
- Added Expr::isConstantExpr().
- Added type checking for InitListExpr elements.
- Added diagnostic for trying to initialize a variable sized object.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@41674 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/Sema/Sema.h b/Sema/Sema.h
index 38c11a0..a741657 100644
--- a/Sema/Sema.h
+++ b/Sema/Sema.h
@@ -445,7 +445,7 @@
QualType CheckInitializer(Expr *simpleInit_or_initList, QualType declType,
bool isStatic);
bool CheckSingleInitializer(Expr *simpleInit, QualType declType);
- bool RequireConstantExprs(InitListExpr *IList);
+ bool CheckInitList(InitListExpr *IList, QualType DType, bool isStatic);
/// ConvertIntegerToTypeWarnOnOverflow - Convert the specified APInt to have
/// the specified width and sign. If an overflow occurs, detect it and emit