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
Showing
- clang/lib/Sema/SemaExceptionSpec.cpp 6 additions, 3 deletionsclang/lib/Sema/SemaExceptionSpec.cpp
- clang/test/CXX/except/except.spec/p15.cpp 12 additions, 8 deletionsclang/test/CXX/except/except.spec/p15.cpp
- clang/test/SemaCXX/cxx0x-cursory-default-delete.cpp 1 addition, 1 deletionclang/test/SemaCXX/cxx0x-cursory-default-delete.cpp
Loading
Please register or sign in to comment