]> granicus.if.org Git - clang/commit
Fix error recovery with in-class initializer.
authorEli Friedman <eli.friedman@gmail.com>
Fri, 28 Jun 2013 21:07:41 +0000 (21:07 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Fri, 28 Jun 2013 21:07:41 +0000 (21:07 +0000)
commit5fb478be9b91f15624e855e7bd6ac2101021ac48
tree8d938a7afe3a341c74b33495d9ec1cb6b77e0a28
parentb26f012c8354b85dff5d9a0eac3a78bd11c73e9b
Fix error recovery with in-class initializer.

Previously, for a field with an invalid in-class initializer, we
would create a CXXDefaultInitExpr referring to a null Expr*.
This is not a good idea.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@185216 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaDeclCXX.cpp
test/SemaCXX/constant-expression-cxx11.cpp