http://llvm.org/bugs/show_bug.cgi?id=16638
Bug ID: 16638
Summary: -Wimplicit-exception-spec-mismatch fires on implicitly
generated operator delete
Product: clang
Version: unspecified
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: C++11
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
This shouldn't warn:
$ cat test.cc
class ScriptData {
public:
virtual ~ScriptData() { }
virtual bool HasError() = 0;
};
void operator delete[](void* ptr) throw();
void operator delete(void* ptr) throw();
But it does:
$ third_party/llvm-build/Release+Asserts/bin/clang -c test.cc -std=gnu++11
-Wall
test.cc:7:6: warning: function previously declared with an implicit exception
specification redeclared with an explicit exception specification
[-Wimplicit-exception-spec-mismatch]
void operator delete[](void* ptr) throw();
^
test.cc:8:6: warning: function previously declared with an implicit exception
specification redeclared with an explicit exception specification
[-Wimplicit-exception-spec-mismatch]
void operator delete(void* ptr) throw();
^
2 warnings generated.
$ third_party/llvm-build/Release+Asserts/bin/clang --version
clang version 3.4 (trunk 184830)
Target: x86_64-apple-darwin12.4.0
Thread model: posix
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs