]> granicus.if.org Git - clang/commit
PR16638, DR1552: the exception specification on an implicitly-declared
authorRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 7 Feb 2014 22:51:16 +0000 (22:51 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 7 Feb 2014 22:51:16 +0000 (22:51 +0000)
commitb7142cbc08de0d7df55b64ead799ad7029967e0d
tree84da3a769da4febbbde301255f4313f9a9f41ede
parent17ef7ef24312fca79980f0db621886ebd9e77dfa
PR16638, DR1552: the exception specification on an implicitly-declared
'operator delete' or 'operator delete[]' is an explicit exception
specification. Therefore we should diagnose 'void operator delete(void*)'
instead of 'void operator delete(void*) noexcept'.

This diagnostic remains an ExtWarn, since in practice people don't always
include the exception specification in such a declaration.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@201002 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaExceptionSpec.cpp
test/CXX/except/except.spec/p15.cpp
test/SemaCXX/cxx0x-cursory-default-delete.cpp