]> granicus.if.org Git - clang/commit
Reinstate fix for PR7526, which was failing because, now that we
authorDouglas Gregor <dgregor@apple.com>
Thu, 1 Jul 2010 05:10:53 +0000 (05:10 +0000)
committerDouglas Gregor <dgregor@apple.com>
Thu, 1 Jul 2010 05:10:53 +0000 (05:10 +0000)
commitd92ec474faeb6133e0d41f0de4526b22778476f2
tree8a0cff7f5091efc1b3029cac9d4eb14fa9a14cb6
parent92bc027496b2090498f31cd8278d78720a39c020
Reinstate fix for PR7526, which was failing because, now that we
aren't dropping all exception specifications on destructors, the
exception specifications on implicitly-declared destructors were
detected as being wrong (which they were).

Introduce logic to provide a proper exception-specification for
implicitly-declared destructors. This also fixes PR6972.

Note that the other implicitly-declared special member functions also
need to get exception-specifications. I'll deal with that in a
subsequent commit.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@107385 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/Sema.h
lib/Sema/SemaDecl.cpp
lib/Sema/SemaDeclCXX.cpp
test/CodeGenCXX/destructors.cpp
test/SemaCXX/destructor.cpp