]> granicus.if.org Git - clang/commit
Fix rejects-valid with default member initializers exposed by r291318.
authorRichard Smith <richard-llvm@metafoo.co.uk>
Tue, 10 Jan 2017 08:51:46 +0000 (08:51 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Tue, 10 Jan 2017 08:51:46 +0000 (08:51 +0000)
commit2bc69213d992f10441ec43d78152e9e200d08720
tree97217415eda0d78496e39152c08924777446bd82
parent84bfee66d4f915ad3f0878f1a6410bfd0b49ea91
Fix rejects-valid with default member initializers exposed by r291318.

Don't prematurely clean up an RAII object; there's another RAII object in the
same scope that tries to save and restore the same member!

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@291551 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaTemplateInstantiate.cpp
test/SemaCXX/cxx0x-class.cpp