https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115790

            Bug ID: 115790
           Summary: GCC doesn't emit a diagnostic for deprecated copy ctor
           Product: gcc
           Version: 15.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jlame646 at gmail dot com
  Target Milestone: ---

The copy ctor is deleted(before it was defaulted but not this is deprecated)
for the shown class but gcc doesn't emit any warning.
https://godbolt.org/z/G78WYP9ch
```
class X
{
  public:
    ~X() {}; 
};
X x;
X y = x; 
int main()
{

}
```

https://eel.is/c++draft/class.copy.ctor#6.sentence-3 states that the latter
case is deprecated meaning now the copy ctor is deleted not defaulted.

Reply via email to