]> granicus.if.org Git - clang/commit
Fix crash when trying to pack-expand a GNU statement expression.
authorRichard Smith <richard-llvm@metafoo.co.uk>
Sat, 3 Feb 2018 00:44:57 +0000 (00:44 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Sat, 3 Feb 2018 00:44:57 +0000 (00:44 +0000)
commit64e12bfe9c3e83e35bee59146577a4e951bee09f
tree6816b7bff3183e0c252fc84741c5912037e1f962
parent82ecd7e4b1e4a0477ea29e0dccd8bbea6e4e137f
Fix crash when trying to pack-expand a GNU statement expression.

We could in principle support such pack expansion, using techniques similar to
what we do for pack expansion of lambdas, but it's not clear it's worthwhile.
For now at least, cleanly reject these cases rather than crashing.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@324160 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Sema/ScopeInfo.h
include/clang/Sema/Sema.h
lib/Parse/ParseOpenMP.cpp
lib/Parse/ParseStmt.cpp
lib/Sema/Sema.cpp
lib/Sema/SemaStmt.cpp
lib/Sema/SemaTemplateVariadic.cpp
test/SemaTemplate/stmt-expr.cpp [new file with mode: 0644]