When processing an InitListExpr and skipping the initialization of an invalid
authorRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 28 Sep 2012 21:23:50 +0000 (21:23 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 28 Sep 2012 21:23:50 +0000 (21:23 +0000)
commit72ab27732ea7a42d756a1e79727f86fbe391b42b
tree18d34616df378ea572eda65f8e07ab5ca94c123d
parent3c88301b551add30e9a4b59af325534643dc4b21
When processing an InitListExpr and skipping the initialization of an invalid
record, skip at least one element from the InitListExpr to avoid an infinite
loop if we're initializing an array of unknown bound.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@164851 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaInit.cpp
test/CXX/dcl.decl/dcl.init/dcl.init.aggr/p4.cpp