[Bug c++/94723] New: Missing -Wdeprecated warning when user-declared copy assignment operator is defined as deleted
david.bolvansky at gmail dot com
gcc-bugzilla@gcc.gnu.org
Wed Apr 22 22:14:21 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94723
Bug ID: 94723
Summary: Missing -Wdeprecated warning when user-declared copy
assignment operator is defined as deleted
Product: gcc
Version: 10.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: david.bolvansky at gmail dot com
Target Milestone: ---
struct S {
int i;
S& operator=(const S&) = delete;
};
S test(const S& s) { return S(s); }
GCC does not warn with -Wdeprecated-copy nor -Wdeprecated.
Is this intentionally not diagnosed? or just missed case in GCC?
Godbolt link: https://godbolt.org/z/Zqgdue
More information about the Gcc-bugs
mailing list