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

jack <jack.cui2 at foxmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|INVALID                     |---
             Status|RESOLVED                    |UNCONFIRMED

--- Comment #3 from jack <jack.cui2 at foxmail dot com> ---
Tried another version.

class Single
{
private:
    Single() = default;

    int a;
};

auto s1 = Single{}; // compilation error. expected behavior

What is the difference compared with

class Single
{
private:
    Single() = default;
};

Reply via email to