[Bug c++/86094] [8/9 Regression] Call ABI changed for small objects with defaulted ctor

a3at.mail at gmail dot com gcc-bugzilla@gcc.gnu.org
Thu Aug 16 21:56:00 GMT 2018


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

Azat <a3at.mail at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |a3at.mail at gmail dot com

--- Comment #12 from Azat <a3at.mail at gmail dot com> ---
Shouldn't such case also be warned by `g++ -Wabi=12` ?

struct noncopyable
{
public:
    noncopyable(noncopyable &&) = default;
};
struct S : public noncopyable
{
    int i;
};
void foo(S s) {}


More information about the Gcc-bugs mailing list