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)
commitc7fb225cdc4662535340acb5ee0749a5c6d3c7d3
tree614a749d7eee9bc9147f4950a8043cad550d62be
parent3d8a106f6f3afae80e02023721cbf65edc9c0c43
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.

llvm-svn: 201002
clang/lib/Sema/SemaExceptionSpec.cpp
clang/test/CXX/except/except.spec/p15.cpp
clang/test/SemaCXX/cxx0x-cursory-default-delete.cpp